Error: invalid_scope
I try oauth2 Login to use next-auth.js
import NextAuth from 'next-auth'GithubProvider is no Problem working.
import GithubProvider from 'next-auth/providers/github'
import BoxProvider from 'next-auth/providers/box'
export default NextAuth({
providers: [
BoxProvider({
clientId: process.env.BOX_CLIENT_ID,
clientSecret: process.env.BOX_CLIENT_SECRET,
scope: 'root_readonly',
}),
GithubProvider({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,
}),
],
})
but BoxProvider get
[next-auth][error][OAUTH_CALLBACK_ERROR]
https://next-auth.js.org/errors#oauth_callback_error invalid_scope {
message: 'invalid_scope',
stack: 'Error: invalid_scope\n' +
' at oAuthCallback (C:\\dev\\react\\nextauth\\test001\\node_modules\\next-auth\\core\\lib\\oauth\\callback.js:39:19)\n' +
...
投稿コメントは受け付けていません。
コメント
0件のコメント