Sentry: unset the Sentry account when appropriate
This commit is contained in:
@ -53,4 +53,10 @@ async function setSentryAccount(account: Account) {
|
||||
});
|
||||
}
|
||||
|
||||
export { startSentry, setSentryAccount };
|
||||
/** Remove the account from Sentry events. */
|
||||
async function unsetSentryAccount() {
|
||||
const Sentry = await import('@sentry/react');
|
||||
Sentry.setUser(null);
|
||||
}
|
||||
|
||||
export { startSentry, setSentryAccount, unsetSentryAccount };
|
||||
Reference in New Issue
Block a user