chore(release): v1.0.6

This commit is contained in:
René Preuß
2023-04-08 12:30:13 +02:00
parent 479e7d4b22
commit 0ace3e8054
3 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
# Changelog
## v1.0.6
## v1.0.5
## v1.0.4

View File

@@ -1,6 +1,6 @@
{
"name": "@bitinflow/nuxt-oauth",
"version": "1.0.5",
"version": "1.0.6",
"description": "Nuxt 3 OAuth Module",
"license": "MIT",
"type": "module",

View File

@@ -12,8 +12,8 @@ export default async (options: ComposableOptions = {
fetchUserOnInitialization: false
}) => {
const authConfig = useRuntimeConfig().public.oauth as ModuleOptions;
if (user == null) user = useCookie('oauth_user')
if (accessToken == null) accessToken = useCookie('oauth_access_token')
if (user == null) user = useCookie('oauth_user');
if (accessToken == null) accessToken = useCookie('oauth_access_token');
const fetchUser = async () => {
try {