:arrow_up: UPDATE | Sample B2C app is running in d...
# ask-a-descoper
l
⬆️ UPDATE | Sample B2C app is running in dev Auth is not loading but I know there are issues I need to solve in my config in your admin tool.
c
Feel free to let us know if you need any help. One of us can sync on zoom as well. Adding @Kevin Gao for visibility on this thread.
👍🏼 1
l
Ok great. I’m just back from lunch and diving back in. Let me blow up my inital project and reset my .env
If I still can’t get it working I’ll ask for help. Next check 3pm pacific
🛟 help please
@Kevin Gao @Chris Carper
k
Hi @Laura Ulmer
l
Howdy
k
What seems to be the problem?
l
Auth isn’t loading into the Tee-Hee Tees dev site running locally on my machine
I think we should start by looking at the .env to make sure its properly set
k
Yep, let's make sure your Project ID and everything else is squared away first
Let me pull up the B2C app
l
P2Of3chsSCHf3C99DkiigKE19flu
k
Alright let me take a look
l
it should give you a phone number based OTP flow that doesn’t permit self-reg
k
Are you using sign up or in?
l
just sign in
no self reg
We would handle user creation as a back office action in the product
I assume it will be an invite by email
k
I'm trying to see your flow but I can't see it for some reason. Could you open it up and select the download button here:
You should get a JSON and then can you paste it here in the chat
It won't contain any sensitive data, just the configuration of your flow that I will be able to see
l
Gim sec
sign-in.json
k
Make sure that in the sample app, you changed SignUpOrInFlow component here in Login.js to using the generic Descope component:
Copy code
<Descope
    flowId="myFlowId"
    onSuccess={(e) => console.log('Success!')}
    onError={(e) => console.log('Error!')}
/>
myFlowID you can set to "sign-in"
Copy code
<Descope
    flowId="sign-in"
    onSuccess={(e) => console.log('Success!')}
    onError={(e) => console.log('Error!')}
/>
So something like this
l
🤪
Gim Sec
k
You can also try just using
SignInFlow
instead of
SignUpOrInFlow
I think that will also work, worth a try
l
👊🚌
Can we zoom?
k
Sure
P2Of1JkkbUkaw9Gv17xsjZcPOf5o