https://supertokens.com/ logo
f

funk101

05/28/2022, 3:45 PM
Error: requireAuth prop should not change. If you are seeing this, it probably means that you are using SessionAuth in multiple routes with different values for requireAuth. To solve this, try adding the "key" prop to all uses of SessionAuth like <SessionAuth key="someUniqueKeyPerRoute" requireAuth={...}>
r

rp

05/28/2022, 3:48 PM
Hey!
f

funk101

05/28/2022, 3:48 PM
yo
r

rp

05/28/2022, 3:48 PM
You can fix this by adding a unique key prop to EmailPasswordAuthNoSSR
f

funk101

05/28/2022, 3:49 PM
how about this...?
if (securityLevel === "full") { return ( {getLayout()} ); } else { return ( {getLayout()} ); }
r

rp

05/28/2022, 3:50 PM
yea. You can also add the securityLevel text to it. In case you are rendering the same path with different security level
f

funk101

05/28/2022, 3:51 PM
so I can just use the security level then, in both ?
r

rp

05/28/2022, 3:51 PM
Huh?
f

funk101

05/28/2022, 3:51 PM
actually security level has no value if not full
ok, other than using these suggestions, how else would I generate a key for this situation?
just some random
uniqueId
?
r

rp

05/28/2022, 3:53 PM
Usually the path is good enough
f

funk101

05/28/2022, 3:53 PM
ok
thanks again
6 Views