allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
212 stars 39 forks source link

API Token is no longer valid. #9098

Open Peach-Online-Mall opened 3 months ago

Peach-Online-Mall commented 3 months ago

We are receiving a message, that our API Token is no longer valid. How can we get a new token?

Thank you.

invalid_grant: Invalid refresh token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiIxMTU4MzI0MDAiLCJzY29wZSI6WyJhbGxlZ3JvOmFwaTpvcmRlcnM6cmVhZCIsImFsbGVncm86YXBpOnByb2ZpbGU6d3Jpd GUiLCJhbGxlZ3JvOmFwaTpzYWxlOm9mZmVyczp3cml0ZSIsImFsbGVncm86YXBpOmJpbGxpbmc6cmVhZCIsImFsbGVncm86YXBpOmNhbXBhaWducyIsImFsbGVncm86YXBpOmRpc3B1dGVzIiwiYWx sZWdybzphcGk6c2FsZTpvZmZlcnM6cmVhZCIsImFsbGVncm86YXBpOnNoaXBtZW50czp3cml0ZSIsImFsbGVncm86YXBpOm9yZGVyczp3cml0ZSIsImFsbGVncm86YXBpOmFkcyIsImFsbGVncm86Y XBpOnBheW1lbnRzOndyaXRlIiwiYWxsZWdybzphcGk6c2FsZTpzZXR0aW5nczp3cml0ZSIsImFsbGVncm86YXBpOnByb2ZpbGU6cmVhZCIsImFsbGVncm86YXBpOnJhdGluZ3MiLCJhbGxlZ3JvOmF waTpzYWxlOnNldHRpbmdzOnJlYWQiLCJhbGxlZ3JvOmFwaTpwYXltZW50czpyZWFkIiwiYWxsZWdybzphcGk6c2hpcG1lbnRzOnJlYWQiLCJhbGxlZ3JvOmFwaTptZXNzYWdpbmciXSwiYWxsZWdyb 19hcGkiOnRydWUsImF0aSI6IjI3NTY2N2EzLTBhOTktNDFjMi05ZThhLTcyOGRjODI1MDk2MSIsImlzcyI6Imh0dHBzOi8vYWxsZWdyby5wbCIsImV4cCI6MTcyNDUyNjg4NCwianRpIjoiYzcwYWE xODctNzUzMy00YmQwLTk2ZGYtNTJlMTNjNjdhYjc4IiwiY2xpZW50X2lkIjoiMTkxODM4ZTMwZmYxNGI0Y2JmMzY1NzlkYjEzNTRiNjUifQ.k-GSDw1zPJFUjp-nKNTxxw3g8EEr5Z7dVExoqo8ymL ISuj_EuQm2Kjq9_X-7i_nW9dd04LibGcvkSrsHOVxbdWDnjZq7ZztRsprRQL5mAJtSeAkaux9dFw7bKX0KGpRXmLEZpI-5980Hxz8rLyjjQ6JlLBRX_rhXwCJ0Rem3LKGlAK_mgQ16dtrYc5T8J7Fw kjRJZepLLHfsRCrWLXYtfjRyW53qMVTofIj4atGjsRaqWWA_To4a1y4k2UqSTyFTyCtxMvT8UEK9ZAD0BFEzweuJsbOzLzcIEkegr9iAWwwpktmbmz7RhQd8ff4T9kj-Er9aK_FKlmNtpmx0d_ZLrg

AureliuszBrussy commented 3 months ago

If the refresh token is no longer valid, then you should simply generate a completely new pair of access and refresh tokens, just as you generated the first pair for the user. You can read all about authentication and authorization in our tutorial.

Peach-Online-Mall commented 3 months ago

Hi, Thank you for your speedy reply but unfortunately I can´t find anything about generating a new API Token. Could you please send m a link for generating a new API Token? Thank you.

Kind regards

Oliver

https://developer.allegro.pl/tutorials/authentication-and-authorization-m09BlVyo7iY Uwierzytelnianie i autoryzacja - Allegro Developer Portal - baza wiedzy o Allegro REST APIhttps://developer.allegro.pl/tutorials/authentication-and-authorization-m09BlVyo7iY developer.allegro.plhttps://developer.allegro.pl/tutorials/authentication-and-authorization-m09BlVyo7iY [favicon.ico]https://developer.allegro.pl/tutorials/authentication-and-authorization-m09BlVyo7iY

[PastedGraphic-1.png]

Am 27.05.2024 um 13:37 schrieb AureliuszBrussy @.***>:

If the refresh token is no longer valid, then you should simply generate a completely new pair of access and refresh tokens, just as you generated the first pair for the user. You can read all about authentication and authorization in our tutorialhttps://developer.allegro.pl/tutorials/authentication-and-authorization-m09BlVyo7iY.

— Reply to this email directly, view it on GitHubhttps://github.com/allegro/allegro-api/issues/9098#issuecomment-2133291026, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIYFWWRMUIX7GXOYAHX2YQ3ZEMLH5AVCNFSM6AAAAABIK75LK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGI4TCMBSGY. You are receiving this because you authored the thread.Message ID: @.***>

AureliuszBrussy commented 3 months ago

You generate a new pair in one of the processes:

The same way you generated a new pair of access and refresh token on the first time for this user.

stale[bot] commented 2 months ago

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.