user
01/09/2022, 1:26 PMrp
01/09/2022, 2:03 PMKillian
01/10/2022, 6:37 AMrp
01/10/2022, 6:39 AM{role: "admin}
2) Post session verification, you can get the role from the access token, and check if it's "admin"
. If it's not, then you can throw an error to the frontend.Killian
01/10/2022, 6:40 AMrp
01/10/2022, 6:40 AMKillian
01/10/2022, 6:41 AMKillian
01/10/2022, 6:42 AMsmoleniuch
01/10/2022, 6:05 PMconst App = (storeData) => {
let reduxStore;
// update store based on SuperToken events
SuperTokens.init()
}
Im asking just to be certain, it throws me an error that SuperToken is not initialized when i land on my login form.Form is rendered inside main App component of course.rp
01/10/2022, 6:06 PMrp
01/10/2022, 6:07 PMsmoleniuch
01/10/2022, 6:11 PMsmoleniuch
01/10/2022, 6:11 PMrp
01/10/2022, 6:13 PMrp
01/10/2022, 6:18 PMsmoleniuch
01/10/2022, 6:19 PMrp
01/10/2022, 6:19 PMsmoleniuch
01/10/2022, 6:25 PMEmailPasswordSignUpForm
and EmailPasswordSignInForm
component. Seems like easier thing to do in my case.I will check if session exists on my main component and update store when user lands on my website.smoleniuch
01/10/2022, 6:25 PMrp
01/10/2022, 6:27 PMKillian
01/10/2022, 9:22 PMrp
01/11/2022, 3:54 AMKillian
01/11/2022, 3:59 AMKillian
01/11/2022, 4:30 AMrp
01/11/2022, 4:32 AMKillian
01/11/2022, 4:32 AMrp
01/11/2022, 4:33 AMKillian
01/11/2022, 4:33 AMrp
01/11/2022, 4:34 AM