DEV Community

Discussion on: Next.js Authentication - JWT Refresh Token Rotation with NextAuth.js

Collapse
 
jon_rivera_9152520f0c7293 profile image
Jon Rivera • Edited

hey Mateusz!

thanks so much for this thorough tutorial. Currently, my auth flow returns me a code on the url, that I can POST and get a accessToken, accessTokenExpiry and refreshToken. Using the CredentialsProvider, I get that my credentials are wrong.

Is is required to provide credentials (username and password) when using CredentialsProvider ?