Is there a way I can add something to app_metadata
(preferably) or user_metadata
when processing the hook? I’d want to store some extra info I could reuse in my logged in user. Cheers
EDIT:
I found this Netlify Identity for paid subscriptions
I’m passing this in my hook
const responseBody = {
app_metadata: {
authorization: { roles: ["admin", "editor", "whatever_role_you_want"] }
},
};
return {
statusCode: 200,
body: JSON.stringify(responseBody),
};
But the netlifyIdentity.currentUser()
doesn’t show the authorization data in app_metadata.
Tried with user_metadata as well, same results.