mirror of
https://github.com/bitinflow/nuxt-oauth.git
synced 2026-03-13 13:45:59 +00:00
chore(release): v1.0.6
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v1.0.6
|
||||
|
||||
## v1.0.5
|
||||
|
||||
## v1.0.4
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user