#marcoprouve-login-link
1 messages · Page 1 of 1 (latest)
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
Yeah JS thanks!
Here you go:
`const loginLink = await stripe.accounts.createLoginLink(
'acct_abc123',
{
redirect_url: 'https://www.someurl.com'
}
);
console.log(loginLink);`
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
It's supposed to only redirect after you log out of the login page. Did you try that?
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()
okk sounds good
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
thank you!