How to use the accessToken to call a route that is protected by nextauth from server ?

Does any one have examples where you use accessTokens to autenticate API call instead of cookies and sessions.
Was this page helpful?