setup base jwt authentication

This commit is contained in:
2025-01-06 21:34:23 +01:00
parent e91d6540bf
commit cf15e3beb3
12 changed files with 425 additions and 6 deletions

View File

@@ -1,7 +1,12 @@
{{page-title "Holygamesapp"}}
{{outlet}}
{{! The following component displays Ember's default welcome message. }}
<WelcomePage />
{{! Feel free to remove this! }}
<div class="menu">
{{#if this.session.isAuthenticated}}
<button type="button" {{on "click" this.invalidateSession}}>Logout</button>
{{else}}
<LinkTo @route="login">Login</LinkTo>
{{/if}}
</div>
<div class="main">
{{outlet}}
</div>