Hi
I have created BYOS feature in my Angular app and now i want to do authentication of the user such as the front end recieve the login id and password of the user and then frontend recieve auth code or in any other way that authorization happens at backend and token is generated on backend and send to front but i dont want to forcefully manually trigger the auth code toekn exchange because with that also token is somehow exposed to frontedn also
is there any way i can achieve with flow or possible solution for that
p
Prashasth Baliga
12/04/2025, 4:08 PM
@Atharva Joshi can you assist on the BYOS?
a
Atharva Joshi
12/05/2025, 9:47 AM
@Aksha Malik BYOS is used when you want custom screens for the flows. So using BYOS needs frontend implementation. But implementing auth on the backend is entirely different and can be done with the backend SDKs
a
Aksha Malik
12/05/2025, 10:00 AM
but with BYOS we directly get the access token and refresh token and oher user detail directly on frontend but i need a way if there is any, we get code rather than directly token from frontend and use that at backend to get the access token for security purpose
a
Atharva Joshi
12/05/2025, 12:26 PM
if your using flows then theres no way to access your code in the flow so you'll need to use backend API to access the tokens at the backend itself. This way your frontend wont have access to the tokens acc to your requirement.