nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
23.12k stars 3.15k forks source link

Need discussion about the "refresh_token_expires_in" field. #10474

Open SH5H opened 3 months ago

SH5H commented 3 months ago

What is the improvement or update you wish to see?

Since "github" is not the only one that supports this field, it would be good to mention in the documentation which providers support this field and provide a workaround.

Is there any context that might help us understand?

I found that one of built-in providers, kakao, supports the "refresh_token_expires_in" field, so we did some additional work accordingly.

Does the docs page already exist? Please link to it.

No response

ndom91 commented 2 months ago

What would you like to use this field for exactly? We don't document every additional field that each provider supports / returns, so I don't think that makes sense, but maybe we can come up with a more spec-compliant / supported way to do what you're trying to do :thinking:

SH5H commented 2 months ago

By default, this field throws an error when used with the Prisma adapter. Personally, I'd like to see a small mention on the Prisma adapter page about the error and workaround when using a provider that supports this field.