Skip to content

Commit

Permalink
🎉 feat: basic editor
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Jan 2, 2024
1 parent 4752bef commit 6bc13e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/resonator/src/controllers/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ export const auth = new Elysia({

return user.profile
})
.get('/sign-out', async ({ user }) => {
await user.signOut()
.get('/sign-out', async ({ user, cookie: { session } }) => {
try {
await user.signOut()
} catch {
session.remove()
}

return 'Signed out'
})
Expand Down

0 comments on commit 6bc13e9

Please sign in to comment.