`Error: requireAuth prop should not change. If you...
# support-questions
f
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
Hey!
f
yo
r
You can fix this by adding a unique key prop to EmailPasswordAuthNoSSR
f
how about this...?
if (securityLevel === "full") { return ( {getLayout()} ); } else { return ( {getLayout()} ); }
r
yea. You can also add the securityLevel text to it. In case you are rendering the same path with different security level
f
so I can just use the security level then, in both ?
r
Huh?
f
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
Usually the path is good enough
f
ok
thanks again
6 Views