[BUG] Missing method to clear the user
Closed this issue ยท 5 comments
๐ Bug report
Description
I call setUser
on login with the user's details and would like to clear the user on logout. Unfortunately there is no method clearUser
and setUser
does not allow to be called with null
.
In @sentry/angular-ivy
what I do is get the current scope and call scope.setUser(null)
on it.
Expected behavior
Add a new method clearUser
or allow calling setUser
with null
.
Versions
"@micro-sentry/angular": "~7.0.2",
๐ This issue is included in version core@7.0.3 ๐
The release is available on GitHub release
๐ This issue is included in version browser@7.0.4 ๐
The release is available on GitHub release
๐ This issue is included in version angular@7.0.3 ๐
The release is available on GitHub release
๐ This issue is included in version breadcrumbs-plugin@1.0.1 ๐
The release is available on GitHub release
That was quick! Thanks so much ๐๐ป