OAuth2 Redirect not working for create new account

Im creating an application where users can use the Alpaca services and one of the first things they need to do is create an account. I know most of my users will not have an Alpaca account so when brought to this image

They will select ‘Sign up for free’. When they do and the account is created, there is no redirect back to my application. It works when they already have an account and they select the ‘login’ option. Note Im currently running my application on localhost.

How can I get redirect working for ‘sign up me’ option

Sorry I don’t have any solution for you. Instead I have a question because I’m having difficulties in launching my mobile app.

  1. is your app a mobile app?
  2. my problem in my mobile app is that it iterates forever from app to authenticate page on web browser. Let me tell in details.
    1. launch an mobile app
    2. The first screen shows a button saying “Authenticate with Alpaca”,
    3. When the button above 1 is clicked, then opens login/signup screen on web browser.
    4. When logged in with my account, a page shows “Authorize Alpaca Mobile” having 2 buttons “Deny” and “Allow”.
    5. pressing either one goes back to the app. and it shows the same page on step 2.
    6. it iterates from step 2 through step 5 forever.

Do you have any comment how to fix this iteration after logging in and authentication?

Thank you in advance.
Sean,

  1. I am not using a mobile app
  2. From my understanding Alpaca redirects to a URL, do you have URL’s configured in your mobile app? Because when your mobile app starts I would imagine the default url being ‘/’ so when Alpaca redirects to ‘/’ its going to consistently call the initial page.

I did as Readme.md says

Blockquote

Go to OAuth Apps and get client id/secret by creating new app. (The redirect uri should be alpacamobile://oauth ).

Blockquote

I also noticed OAuth clients must be approved by Alpaca in my oauth tab of my dashboard,
" Note: OAuth clients must be approved by Alpaca before they can execute live trades on behalf of users. To get your app approved for live trading, please [click here to send an email to our support team.] We will take a look and let you know when your app has been approved or if there are any changes you need to make.

Have you sent email for approval?

Thanks.