Authentication
If you'd like your website users to be able to create accounts, here are the endpoints you'll need to use:
Relevant endpoints:
User State
You'll need to manage the user's state (logged in or not) on your own.
If you follow the sample app, take a look here for an example using cookies to store the logged in user's authentication token:
https://github.com/dispenseapp/dispense-sample-app/blob/main/src/utils/auth.ts
Checkout
When redirecting your users to checkout, if they are logged in, you'll want them to be logged in at checkout.
The Blueprint checkout page allows you to pass the user's authentication token via query string parameters:
const cartUrl = cart.checkoutUrl + '?auth={authentication token}'
Updated 6 days ago