Hey. I'm trying to use SuperTokens inside my chrome extension.
I have 3 parts
- popup. General extension part. Login flow, etc
- content. injected html to web pages
- background - process secure calls to my api.
I managed to implement login/logout flow inside popup
But stuck with use token in background process.
I'm receiving error import() is not allowed in service workers. when I'm trying to init SuperTokens
Is it possible to get secure token from background process in chrome extension?
r
rp_st
02/04/2023, 1:52 PM
Hey @Dyn
rp_st
02/04/2023, 1:52 PM
We don’t have a guide for using supertokens with an extension. But I think some people ha he managed to get it to work. Search on our discord for past conversations about this
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).