fix: pass auth_instance to sentry middleware#330
Conversation
|
@braddf I decoded the current JWT and these are the fields present: When we add the organization_id, what key should we use to store it in the JWT? I can also add it to the Sentry middleware so it gets attached to Sentry events. |
|
@suvanbanerjee the org id should be stored/fetched already here: So you can use that key too |
| "email": payload.get(auth.EMAIL_KEY), | ||
| }, | ||
| ) | ||
| org_id = get_org_id_from_authdata(payload) |
There was a problem hiding this comment.
Don't worry about organization I'd, just ignore that
There was a problem hiding this comment.
if the email is there, thats fine
I used the |
Pull Request
Description
Sentry was only showing client IP addresses and was not logging user email information because the auth instance was not being passed through.
Fixes #329
Checklist: