File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/runtime/composables/local Expand file tree Collapse file tree 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
123123
124124 const headers = new Headers ( token ? { [ config . token . headerName ] : token } as HeadersInit : undefined )
125125
126- const sessionCookie = useCookie < Object | null > ( 'auth:sessionCookie' , {
126+ const sessionCookie = useCookie < object | null > ( 'auth:sessionCookie' , {
127127 default : ( ) => null ,
128128 maxAge : config . token . maxAgeInSeconds ,
129129 sameSite : config . token . sameSiteAttribute
@@ -139,7 +139,8 @@ async function getSession(getSessionOptions?: GetSessionOptions): Promise<Sessio
139139 lastRefreshedAt : lastRefreshedAt . value ,
140140 data : data . value
141141 }
142- } catch ( err ) {
142+ }
143+ catch ( err ) {
143144 if ( ! data . value && err instanceof Error ) {
144145 console . error ( `Session: unable to extract session, ${ err . message } ` )
145146 }
You can’t perform that action at this time.
0 commit comments