Getting user metadata in Angular

Hey all,

I have followed the quick start guide and created my application. My authentication is working fine and I can log in.
I have created a profile page which uses this code:

<pre *ngIf="authenticationService.userProfile$ | async as profile">
    <code>{{ profile | json }}</code>
</pre>

which shows me some details for the user. Now I have created a rule:

function (user, context, callback) {
    if(user.user_metadata && user.user_metadata.reputation)
    user.reputation = user.user_metadata.reputation;
    callback(null, user, context);
}

I have tested this and it seems to work fine.
I have added some user reputation by updating my user from my API and I can see that it has worked when looking in my dashboard.

Now I want to retrieve that data in my angular application.
I figured if I logged out and back in again it would work, but it hasn’t. Can someone explain to me how I can get that data?

Hey there!

Here’s everything you need:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.