File tree 1 file changed +3
-2
lines changed
src/runtime/composables/local
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ async function getSession(getSessionOptions?: GetSessionOptions): Promise<Sessio
123
123
124
124
const headers = new Headers ( token ? { [ config . token . headerName ] : token } as HeadersInit : undefined )
125
125
126
- const sessionCookie = useCookie < Object | null > ( 'auth:sessionCookie' , {
126
+ const sessionCookie = useCookie < object | null > ( 'auth:sessionCookie' , {
127
127
default : ( ) => null ,
128
128
maxAge : config . token . maxAgeInSeconds ,
129
129
sameSite : config . token . sameSiteAttribute
@@ -139,7 +139,8 @@ async function getSession(getSessionOptions?: GetSessionOptions): Promise<Sessio
139
139
lastRefreshedAt : lastRefreshedAt . value ,
140
140
data : data . value
141
141
}
142
- } catch ( err ) {
142
+ }
143
+ catch ( err ) {
143
144
if ( ! data . value && err instanceof Error ) {
144
145
console . error ( `Session: unable to extract session, ${ err . message } ` )
145
146
}
You can’t perform that action at this time.
0 commit comments