Skip to content

Commit

Permalink
fix: reset user info while logging out (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulb authored Sep 30, 2021
1 parent 15dd779 commit e358ea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/meroxa/root/auth/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func (l *Logout) Config(cfg config.Config) {
func (l *Logout) Execute(ctx context.Context) error {
l.config.Set(global.AccessTokenEnv, "")
l.config.Set(global.RefreshTokenEnv, "")
l.config.Set(global.ActorEnv, "")
l.config.Set(global.ActorUUIDEnv, "")
l.config.Set(global.UserFeatureFlagsEnv, "")

l.logger.Infof(ctx, "Successfully logged out.")
return nil
Expand Down

0 comments on commit e358ea3

Please sign in to comment.