Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

AWS Authenticator in Ionic - Need some basic help please

$
0
0

Hi,
As you might see, I am very new to Ionic / Angular and now AWS.

I am starting an application that makes use of the AWS Authenticator described here:

https://docs.amplify.aws/ui/auth/authenticator/q/framework/ionic

So far I successfully installed everything and if I make use of the standard

<amplify-authenticator *ngIf="authState !== 'signedin'"></amplify-authenticator>

the sign in works 100% and I can get the signed in users information.

Question 1:
How do I access that user.username (or any other user information) from other components in the application? As an example, if I follow the default route to the page “home” that was created with the blank template, how would I display the username on this page and not on the app.component.html page?

Question 2:
According to the tutorial this is placed in the app.component.xx
So if I understand correctly this gets loaded before anything else of the application.
Does this mean it has automatically added guards for routes?

Thank you in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>