#marcoprouve-login-link

1 messages · Page 1 of 1 (latest)

shadow scaffold
#

Hmmm, let me check. I think it might be:

stripe.accounts.createLoginLink( 'acct_1ETXzBHvGX36GL6r', redirect_url='www.someurl.com' )

#

Wait, that's not Python. What is your code language?

#

Ah, that's JS. Just a sec

limber jetty
#

Yeah JS thanks!

shadow scaffold
#

Here you go:

`const loginLink = await stripe.accounts.createLoginLink(
'acct_abc123',
{
redirect_url: 'https://www.someurl.com'
}
);

  console.log(loginLink);`
limber jetty
#

Okay yeah thats what i did but for some reason on testing it shows a login page, doesnt redirect to where i want it to

shadow scaffold
#

It's supposed to only redirect after you log out of the login page. Did you try that?

limber jetty
#

Yeah thats what i did it takes me to this:

shadow scaffold
#

Hmmm, that's odd. I can repro on my end. Let me check with someone internally to see if maybe it's only supposed to work client-side using XMLHttpRequest or fetch()

limber jetty
#

okk sounds good

shadow scaffold
#

On second thought, it shouldn't matter if you redirect via client or server, as the redirect URL should be stored regardless. This seems like a bug. Still working internally to see who to talk to about this though

limber jetty
#

thank you!