:arrow_up: UPDATE | Sample B2C app is running in d...
# ask-a-descoper
t
⬆️ 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.
s
Feel free to let us know if you need any help. One of us can sync on zoom as well. Adding @dazzling-oyster-96577 for visibility on this thread.
👍🏼 1
t
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
@dazzling-oyster-96577 @salmon-night-88354
d
Hi @thousands-alarm-31103
t
Howdy
d
What seems to be the problem?
t
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
d
Yep, let's make sure your Project ID and everything else is squared away first
Let me pull up the B2C app
t
P2Of3chsSCHf3C99DkiigKE19flu
d
Alright let me take a look
t
it should give you a phone number based OTP flow that doesn’t permit self-reg
d
Are you using sign up or in?
t
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
d
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
t
Gim sec
sign-in.json
d
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
t
🤪
Gim Sec
d
You can also try just using
SignInFlow
instead of
SignUpOrInFlow
I think that will also work, worth a try
t
👊🚌
Can we zoom?
d
Sure
P2Of1JkkbUkaw9Gv17xsjZcPOf5o