Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How loginWithToken work? #28

Open
safwanidrees opened this issue Jul 28, 2022 · 6 comments
Open

How loginWithToken work? #28

safwanidrees opened this issue Jul 28, 2022 · 6 comments

Comments

@safwanidrees
Copy link

safwanidrees commented Jul 28, 2022

I want to use loginWithToken in the app. How it will work? How do I get that token from sum up dashboard?

I want to use loginWithToken in the app. How loginWithToken will work? How do I generate that token? I also follow that link https://developer.sumup.com/docs/authorization/#1-your-application-requests-authorization but nothing works. If anyone helps me with it. I am very thankful to you. Thank you.

@sstasi95
Copy link
Collaborator

Hi,

I was able to obtain a valid access token with this method, i.e. using grant_type password and providing username and password.

Hope it helps,

Simone

@safwanidrees
Copy link
Author

Thanks, I got a token from that
But that token gives an error the invalid token in loginWithToken Function.

@sstasi95
Copy link
Collaborator

sstasi95 commented Aug 3, 2022

I've just tried again today and I can confirm that it works for me, are you sure the token was still valid? It should expire after a hour. If it's not because of the token expiration, honestly I don't know what can be the problem.

@rivella50
Copy link

@sstasi95 Do i see this correctly, that loginWithToken is meant for the merchant, but not for an employee of the SumUp account?
I.e. an employee can only be correctly handled if he is sent to Sumup.login() and enters there his client username and password?

@sstasi95
Copy link
Collaborator

sstasi95 commented Nov 9, 2022

@rivella50 Yes I think you're right. From SumUp documentation it's not clear, but I couldn't find a way to loginWithToken with an employee.

@sebyspi
Copy link

sebyspi commented May 30, 2023

Hi have the same issue. I contacted the support but they redirected me here. Is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants