Skip to content

Instantly share code, notes, and snippets.

@Koleok
Created September 21, 2022 15:28
Show Gist options
  • Save Koleok/a272d3cbc081caeaad267f47c8ff27d8 to your computer and use it in GitHub Desktop.
Save Koleok/a272d3cbc081caeaad267f47c8ff27d8 to your computer and use it in GitHub Desktop.
Auth Machine&
Auth Machine&
Heir Token
JWT Valid
jwtExpires -> JWT Invalid
logout -> JWT Invalid
JWT Invalid
login -> JWT Valid
Magic Token
Session Valid
magicSessionExpires -> Session Invalid
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