how to block first trpc call fetching user data after next auth authentication completed
I'm trying to implement auth such that I pass some string derived from the token from the auth provider into the authorization header of the request I would send via trpc or react query, for that matter, which means that fetching should definitely not start until the auth process is totally complete, which can be signalled by either the token being available through . I feel like this is a common pattern but I'm having trouble finding docs for this. Thanks.
1 Reply
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View