How I got the access_token from the provider into my Session on Next Auth V5 in a Next.js app with Typescript and appDir
Next Auth (now known as Auth.js) is a bit of a hot mess.
It absolutely takes away lots of work for you if you're using multiple authentication providers (e.g. login with Facebook, Google, Apple etc.) but makes it very hard to get access to those Prov...
blog.henricook.com4 min read