Skip to content

Commit

Permalink
fix(useSurrealAuth): getSessionExp type
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Jul 14, 2024
1 parent e47a5e2 commit d727799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/surreal-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function useSurrealAuth(database?: Overrides['database']) {
if (!_token) throw createError({ statusCode: 401, message: 'Unauthorized' })
return (
await $query<
[{ result: [{ exp: number | 'NONE' | null }] }]
{ exp: number | 'NONE' | null }
>('SELECT exp FROM $session;', undefined, { token: _token })
)[0].result[0]
}
Expand Down

0 comments on commit d727799

Please sign in to comment.