fix: secure email change recovery flow
This commit is contained in:
@@ -25,7 +25,11 @@ onMounted(async () => {
|
||||
try {
|
||||
const resp = await verifyEmail(token.value)
|
||||
message.value = resp.message
|
||||
auth.markEmailVerified()
|
||||
if (resp.session_invalidated) {
|
||||
auth.logout()
|
||||
} else {
|
||||
auth.markEmailVerified()
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof ApiError) {
|
||||
error.value = `[${err.code}] ${err.message}`
|
||||
|
||||
Reference in New Issue
Block a user