error signing in with box
I'm trying to sign in with box , but facing some unusual issue shown in the image
here's my code
here's my code
plugins: [
genericOAuth({
config: [
{
providerId: "box",
clientId: process.env.BOX_CLIENT_ID as string,
clientSecret: process.env.BOX_CLIENT_SECRET as string,
authorizationUrl: "https://account.box.com/api/oauth2/authorize",
tokenUrl: "https://api.box.com/oauth2/token"
}
]
})
] plugins: [
genericOAuth({
config: [
{
providerId: "box",
clientId: process.env.BOX_CLIENT_ID as string,
clientSecret: process.env.BOX_CLIENT_SECRET as string,
authorizationUrl: "https://account.box.com/api/oauth2/authorize",
tokenUrl: "https://api.box.com/oauth2/token"
}
]
})
]export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_BACKEND_URL,
plugins: [
genericOAuthClient()
]
});export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_BACKEND_URL,
plugins: [
genericOAuthClient()
]
}); await authClient.signIn.oauth2({
providerId: "box",
callbackURL: clientEnv.NEXT_PUBLIC_CALLBACK_URL,
}) await authClient.signIn.oauth2({
providerId: "box",
callbackURL: clientEnv.NEXT_PUBLIC_CALLBACK_URL,
})