make callback url on login great again
This commit is contained in:
parent
8a054d55ff
commit
f27aca546d
@ -16,7 +16,7 @@ import { gql, useMutation, useQuery } from '@apollo/client'
|
||||
export async function getServerSideProps ({ req, res, query: { callbackUrl, error = null } }) {
|
||||
const session = await getSession({ req })
|
||||
|
||||
if (session && res && session.accessToken) {
|
||||
if (session && res && callbackUrl) {
|
||||
res.writeHead(302, {
|
||||
Location: callbackUrl
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user