You are not using the const in multiple files and the use of it in NextJS App Route is useless.
Is more readable an easy to find them in the same file, as the example provided by Next Auth from Discord Provider.
Typescript errors you have commented are now removed due to fixing the types correctly.
Removed steamid from TokenSet, to not be required to create a database field in Prisma. Solving the #6 problem I talked about last days. The steamid being saved in id_token field in database, a better case would be saving it in session_state, not sure about it.
Constants are better left as they are. Provider ID or other details like EMAIL_DOMAIN may change in the future, for example if next-auth itself makes Steam provider support and this will conflict with the Provider ID.
It would be much better to decompose entities by their purpose into separate files. We know that constants.ts contains constants, we know that steam.ts contains the provider itself, and so on.
This is a useful change, I'll make it ASAP.
I honestly don't really understand what TokenSet is for. Maybe I should really put SteamID in id_token instead of steamId.
Hey, thanks for the contribution.
The only thing I noticed about this PR is that the colors for the light theme have been fixed. However, the rest of the code suggestions are terrible.
If you can explain why these changes are made and what good they do for the package, then I'll change my mind about closing this PR.