#darius-accountLinks
1 messages · Page 1 of 1 (latest)
the easiest way is to set the returnURL to a link on your server, and then have that route then do a 3xx redirect to the custom exp:// scheme. We don't accept any non-public https links for that field, so basically you want to do it that way, return to the server, which redirects to your app, your app should detect the deep link from the redirect and trigger whatever you have set up for that
also refreshURL can't be a deep link to your app, it has to be a route on your server that creates a new AccountLink using a secret key and 3xx redirects to that.
Thanks for your answer!
I saw some nodeJs examples where they are doing a res.redirect().*
Both the server + client are on the same repo.
I am working with the Serverless framework using the AWS Lambda functions + API Gateway. Will have to research how to do it in this case.
Please let me know if you have any pointers. 🙏
to be clear the way this works overall is the user arrives, you authenticate them in your own system/database (so you know which Stripe account they have, or create one for them(all backend things using secret keys)), then you create an AccountLink with a secret key and redirect the client the returned URL
you can definitely do this in a Lambda(the function should create an AccountLink and either HTTP redirect or return the AccountLink->url field in e..g JSON that your app can decode and redirect to manually). I don't have any direct pointers beyond what's in our sample repos
Thanks for clearing things out