Is there a way to efficiently develop locally about SPA Web APP implement "Invite Organization Members"?

Is there a way to efficiently develop locally about SPA Web APP implement “Invite Organization Members”?

Hi Auth0 Community!

I would like to add the ability Invite Organization Members in my “Single Page Application”.

I can confirm that the invitation email has been sent by using the post_invitations API.

I’m trying to click the URL in the invitation email and describe the necessary processing for the SPA Web APP, but it takes time to deploy it in a CDN environment that can access the Internet and check the operation, so it’s not efficient. I would like to know if there is a way to check in the local environment.

I use Vite when developing in a local environment, and it works on http://localhost:3000.

I understand that the URL of the sent invitation email is the “Application Login URL” of the “Single Page Application” defined by the client_id passed to the post API argument.

However, I don’t think it’s appropriate to set the URL for the local environment so that the following error occurs in the Application Login URL.

If anyone knows anything else about how to develop efficiently locally, I would like some advice.

Any help is greatly appreciated.

===============
Error!

Payload validation error: ‘Object didn’t pass validation for format absolute-https-uri-or-empty: http://localhost:3000/’ on property initiate_login_uri (Initiate login uri, must be https).

You could update your hosts file and set the record “127.0.0.1 <your cdn’s hostname>”
Then configure your dev env to run on port 80. When your browser goes to the cdn address it will load it from your local machine instead.

2 Likes

Thank you so much @jlines !

I would like to try various things by changing the host setting of the terminal

1 Like

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