Skip to content

Commit b0ad984

Browse files
authored
fix: linting in useAuth
1 parent e64a195 commit b0ad984

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/runtime/composables/local/useAuth.ts

+3-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)