# Custom SignUp on SPA with automatic login

**URL:** <https://community.auth0.com/t/custom-signup-on-spa-with-automatic-login/40418>\
**Category:** Get Help\
**Created:** [April 2, 2020, 7:15pm UTC](https://community.auth0.com/t/custom-signup-on-spa-with-automatic-login/40418 "2020-04-02T19:15:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke1988](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luke1988/32/13158_2.png) [@luke1988](https://community.auth0.com/u/luke1988)\
**Post date:** [April 2, 2020, 7:15pm UTC](https://community.auth0.com/t/custom-signup-on-spa-with-automatic-login/40418/1 "2020-04-02T19:15:45Z")

</div>

Hi folks,

I have a custom SignUp form, which has to be on [应用宝官网-全网最新最热手机应用游戏下载](http://www.myApp.com/signup) (this is given due to SEO & UX etc)

The “SignUp” button does not actually access Auth0 API directly, but creates a ajax request to our API (there is some pre-processing that has to be done) which then, if pre-processing success, internally does request to Auth0 Application API to ([https://our-tenant.eu.auth0.com/dbconnections/signup](https://our-tenant.eu.auth0.com/dbconnections/signup)). Our API acts partially like a proxy.

After both, the pre-processing and proxy request are successfully done, I need to redirect new user directly to app, without a login (to [secured.myApp.com](http://secured.myApp.com)). During the signup process, I have user’s email and password in memory, I can call some Auth0 Authorization API.

I did some research and there is quite a lot of posts about automatic login here, however none seems to be suitable for this situation.

[Here](http://community.auth0.com/t/automatic-login-after-creating-auth0-user/21362/10) @mathiasconradt sugests to use Resource Owner Password Grand. This grant returns a JWT in response. Indeed, I can proxy this JWT back to user’s broswer, and store it in memory, but after browser refresh the JWT is lost.

What may solve this is to get a redirect link from Auth0 with autorization token. Normally, login at [myapp-tenant.auth0.com](http://myapp-tenant.auth0.com) redirects user to [secured.myApp.com/authorize?some-magic-codes-here=xxx](http://secured.myApp.com/authorize?some-magic-codes-here=xxx)

Can I get from Auth0 this redirect link? Does this make a sense? What is the ‘Auth0 way’ for such situations?

Thanks a lot  
Luke

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 10, 2020, 9:49pm UTC](https://community.auth0.com/t/custom-signup-on-spa-with-automatic-login/40418/3 "2020-04-10T21:49:49Z")

</div>

Hi @luke1988,

Thanks for reaching out!

As you can probably surmise, there is no built in flow for auto login after a custom signup. The resources you linked are where I would point you in this case. We would love to hear your [feedback](https://auth0.com/feedback), as this is something we have seen requested in the past.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 25, 2020, 1:49am UTC](https://community.auth0.com/t/custom-signup-on-spa-with-automatic-login/40418/4 "2020-04-25T01:49:54Z")

</div>

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