taiga-family/micro-sentry

[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.

image

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 ๐Ÿ™๐Ÿป