Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Store first session's expiry and roles #219

Closed
wants to merge 1 commit into from
Closed

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Jan 30, 2021

part of gravitational/teleport#4937

TODO: fix tests

Description

  • Store first session's expiration and roles in local storage. This allows user to switchback to their default roles, and session lives for the remainder of the expiration
  • After user assumes, or particularly when user switches back to lesser priveledged role, all opened tabs needs to be refreshed to apply new permission
  • Moved BearerToken class/type to session.ts from localstorage.ts
  • Placed a class name for Main component, so that I can target the styling for banner from one location

@kimlisa kimlisa marked this pull request as draft February 1, 2021 20:05
@kimlisa kimlisa closed this Apr 8, 2021
@kimlisa kimlisa deleted the lisa/switchback branch April 8, 2021 06:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant