Skip to content

Commit

Permalink
fix: fix typing check
Browse files Browse the repository at this point in the history
  • Loading branch information
dommi10 committed Nov 24, 2023
1 parent 9a6c5ff commit 4499def
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/runtime/composables/refresh/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,19 @@ const signOut: SignOutFunc = async (signOutOptions) => {
rawToken.value = null
rawRefreshToken.value = null

const { path, method } = config.endpoints.signOut
const { path, method } = config.endpoints.signOut as {
path: string;
method:
| 'get'
| 'head'
| 'patch'
| 'post'
| 'put'
| 'delete'
| 'connect'
| 'options'
| 'trace';
}

const res = await _fetch(nuxt, path, { method, headers })

Expand Down

0 comments on commit 4499def

Please sign in to comment.