Skip to content

Commit 69e62c1

Browse files
committed
Rename to /api/next-account
1 parent 9aad2fd commit 69e62c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/account.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const AccountProvider = ({ children }) => {
5151
}, [])
5252

5353
const multiAuthSignout = useCallback(async () => {
54-
const { status } = await fetch('/api/signout', { credentials: 'include' })
54+
const { status } = await fetch('/api/next-account', { credentials: 'include' })
5555
// if status is 302, this means the server was able to switch us to the next available account
5656
// and the current account was simply removed from the list of available accounts including the corresponding JWT.
5757
const switchSuccess = status === 302

pages/api/signout.js renamed to pages/api/next-account.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as cookie from 'cookie'
2-
import { datePivot } from '../../lib/time'
2+
import { datePivot } from '@/lib/time'
33

44
/**
55
* @param {NextApiRequest} req

0 commit comments

Comments
 (0)