AccessToken for external API communication

What would be the best approach to pass the AccessToken from NextAuth Session to the Http Client which is being called from tRPC procedures to access external API?? Should I attach the AccessToken to the request object from NextAuth session callback and then provide it to the HttpClient instance in the tRPC context initialization for the request?? Or is there better alternative to handle this?
1 Reply
ygor perez
ygor perez2y ago
Do you have any updates on this? I'm really curious
Want results from more Discord servers?
Add your server