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 to call grantless operations (Notifications CreateDestination) without refresh token #786

Open
Sobak opened this issue Sep 20, 2024 · 0 comments

Comments

@Sobak
Copy link

Sobak commented Sep 20, 2024

Problem description:

Hi!

Both SP API docs from Amazon and the package readme state that for the grantless operations having a refresh token for the particular seller isn't a must.

refreshToken (string): The LWA refresh token of the SP API application to use to execute API requests. Required, unless you're only using grantless operations.

However, after checking all package APIs I could think of it seems there isn't a way to create a seller connector instance without providing a valid refresh token, because the package sends it to SP API at all times.

Is my understanding correct that it should be made optional for grantless operations? Any tips on how can I achieve it without writing my own code to build the entire request to SP API, handle the response with Saloon etc?

Context: I'm building a multi-seller application where I need to call CreateDestination for notifications without a context of specific seller.

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

1 participant