Is there a way to get a list of all accounts using "swell-js" library? #532
-
I'm trying out something like this. Basically when the user enters an email in my application I want to check if the account exists before showing the next action. But the only response I get is: Is there a better way to do this or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The swell-js library is a client for Swell's Frontend API, which is concerned with the client-side (frontend) shopping experience. As such, the permissions are restricted to an individual session's shopping experience (ie, you can access your own account, but not others'). Accessing all accounts (or fetching an account by ID) is done thru Swell's Backend API. These actions are meant to be run server-side and require secret key authorization. You can use the swell-node library or roll your own API client to access the Backend API. |
Beta Was this translation helpful? Give feedback.
The swell-js library is a client for Swell's Frontend API, which is concerned with the client-side (frontend) shopping experience. As such, the permissions are restricted to an individual session's shopping experience (ie, you can access your own account, but not others').
Accessing all accounts (or fetching an account by ID) is done thru Swell's Backend API. These actions are meant to be run server-side and require secret key authorization. You can use the swell-node library or roll your own API client to access the Backend API.