Hi, I'm trying to integrate SuperTokens into my An...
# support-questions-legacy
n
Hi, I'm trying to integrate SuperTokens into my Angular application, by following https://supertokens.com/docs/emailpassword/quick-setup/backend Adding frontend pre-built ui went smootly, however after adding these lines of code to main.ts into my app completely stops working, giving white page in browser and error in DevTools What do you mean in your guide by "Add the code below to your server's init file.", what file is it in angular app? Could you help me resolve this issue? Much thanks.
r
hey!
so the code you showed up goes in your backend APi layer
and not angular (frontend) app
n
Hi, I've created backend api however on server start I get an error. The SuperTokens.init function is in frontend, how should I solve this issue? backend and frontend are in separate directories, I'm using conurrently to start both apps
r
n
Thank you, I'll check it out and then let you know
r
Sounds good!
n
Hi! This all works now perfectly fine! Much thanks for your help and support ❤️
r
Great! So the example helped?
n
Yes. It was exactly what I was looking for
3 Views