Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro no console: signin_oauth_error solicitação de saída expirou após 3500ms / [next-auth][error][SIGNIN_OAUTH_ERROR] https://next-auth.js.org/errors#signin_oauth_error outgoing request timed out after 3500ms #1

Open
itamarpambo751 opened this issue Dec 7, 2023 · 0 comments

Comments

@itamarpambo751
Copy link
Owner

itamarpambo751 commented Dec 7, 2023

Se isso acontecer enquanto estiver fazendo a autenticação durante o desenvolvimento do seu app, você pode resolver simplesmente fazendo uma breve alteração no diretório app/api/auth/[...nextauth] no arquivo route.js:

disso:

const authOptions = {
    providers: [
        GoogleProvider({
            clientId: process.env.GOOGLE_CLIENT_ID,
            clientSecret: process.env.GOOGLE_CLIENT_SECRET,
        })
    ]
}

para isso:

const authOptions = {
           providers: [
               GoogleProvider({
                   clientId: process.env.GOOGLE_CLIENT_ID,
                   clientSecret: process.env.GOOGLE_CLIENT_SECRET,
                   httpOptions: {
                       timeout: 60000
                   }
              })
         ]
    }

Altere o tempo de solicitação de saída de 3500ms para 60s ou mais se preferir.

Ok! agora tente outra vez!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant