How to add a new user to plasmic auth using custom auth ?

Hi ,

i am trying to integerate Auth0 with plasmic using custom auth , i tested passing an email and my own plasmic app’s secret token to “ensurePlasmicAppUser” function .

i followed the documentation here :Auth integration | Learn Plasmic

but calling the below function is getting me an error “user not found” , and there is no documentation on how to create a user in plasmic custom auth using the js api

const result = await ensurePlasmicAppUser({
email: ‘USER_EMAIL’,
appSecret: ‘YOUR_APP_SECRET’
});

please help , thanks

Question answered in: Assigning roles with Custom auth provider - #9 by fmota