Created
November 9, 2020 22:01
-
-
Save blogcacanid/fdcb6a836a680db47a94414739766248 to your computer and use it in GitHub Desktop.
profile.component.html Authentication JWT Angular 9 Lumen 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container" *ngIf="currentUser; else loggedOut"> | |
<header class="jumbotron"> | |
<h3>Profile</h3> | |
<h3> | |
<strong>{{ currentUser.username }}</strong> | |
</h3> | |
<p> | |
<strong>Id:</strong> | |
{{ currentUser.id }} | |
</p> | |
<p> | |
<strong>Email:</strong> | |
{{ currentUser.email }} | |
</p> | |
<p> | |
<strong>Token:</strong> | |
{{ currentUser.accessToken.substring(0, 20) }} ... | |
{{ currentUser.accessToken.substr(currentUser.accessToken.length - 20) }} | |
</p> | |
</header> | |
</div> | |
<ng-template #loggedOut> | |
Please login. | |
</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment