#hello, @everyoneI'm currently working on a project using Medusa.js,
1 messages · Page 1 of 1 (latest)
do you also have it included in the auth portion of the .env file
although would say cors error, so i dont think it's cors.
have you looked at the nextjs example ?
it's what i used as my starter template
... the code above works.
it is the sample code.
you need to stand up the backend, then frontend env needs the pk key and the revalidate secrets need to match
and your medusajs env has the req url in auth_cors
does the frontend load correctly if you try to spin it up?
load up the front end and you'll see your request is missing headers.
no, but i dont off the top of my head remember everything included in the request header.
only saying to do that to look at the request header so you can mimic
yes
here you go, you're missing the jwt_token
plenty of documentation for what you're trying to do
if you cant build from the ground up with those docs, i highly suggest using the templates as your starting ground
go register live on mysite... derftuned.com
see the process yourself.
no sorry. there's enough docs and code to follow for examples. if you cant follow the code i dont know how else to explain something
i've given you all the help i can, if you dont understand and cant read the docs i cant help.
Hey there @green river
As 420Coupe has already mentioned, you need a token to create a customer
Indeed, creating a customer account involves several steps that are documented there :
https://docs.medusajs.com/resources/commerce-modules/auth/authentication-route#1-basic-authentication-flow