Skip to content

Instantly share code, notes, and snippets.

@Koleok
Created September 21, 2022 15:29
Show Gist options
  • Save Koleok/1cb213eeaaa66c46f0bf68725cb8fcd9 to your computer and use it in GitHub Desktop.
Save Koleok/1cb213eeaaa66c46f0bf68725cb8fcd9 to your computer and use it in GitHub Desktop.
Auth Machine&
Auth Machine&
Heir Token
JWT Valid
jwtExpires -> JWT Invalid
logout -> JWT Invalid
magicSessionExpires -> JWT Valid
JWT Invalid
login -> JWT Valid
Magic Token
Session Valid
magicSessionExpires -> Session Invalid
jwtExpires -> Session Valid
logout -> Session Invalid
Session Invalid
login -> Session Valid
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment