Skip to content

Correct way to setUser using @sentry/nextjs and Auth0? #6676

Answered by lforst
watadarkstar asked this question in Q&A
Discussion options

You must be logged in to vote

I guess this would work the same way as with any other HTTP framework. For each incoming request, or rather in each route, you should do Sentry.setUser(). Subsequent errors in the routes should then have the user set.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@watadarkstar
Comment options

@watadarkstar
Comment options

@lforst
Comment options

@smeubank
Comment options

@lforst
Comment options

Answer selected by smeubank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants