File tree 1 file changed +14
-11
lines changed
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,17 @@ import Session from "supertokens-auth-react/recipe/session";
6
6
7
7
import { fetchConfig } from "./config" ;
8
8
9
+ const style = `
10
+ [data-supertokens~=container] {
11
+ --palette-primary: 200, 100, 150;
12
+ --palette-primaryBorder: 200, 100, 150;
13
+ }
14
+
15
+ [data-supertokens~=superTokensBranding] {
16
+ display: none;
17
+ }
18
+ ` ;
19
+
9
20
export async function initializeSuperTokens (
10
21
callback : ( ) => void ,
11
22
) : Promise < void > {
@@ -33,22 +44,14 @@ export async function initializeSuperTokens(
33
44
} ,
34
45
} ,
35
46
recipeList : [
36
- EmailPassword . init ( {
37
- style : `
38
- [data-supertokens~=container] {
39
- --palette-primary: 200, 100, 150;
40
- --palette-primaryBorder: 200, 100, 150;
41
- }
42
- [data-supertokens~=superTokensBranding] {
43
- display: none;
44
- }
45
- ` ,
46
- } ) ,
47
+ EmailPassword . init ( ) ,
47
48
EmailVerification . init ( {
48
49
mode : process . env . NODE_ENV === "production" ? "REQUIRED" : "OPTIONAL" ,
49
50
} ) ,
50
51
Session . init ( ) ,
51
52
] ,
53
+
54
+ style,
52
55
useShadowDom : false ,
53
56
} ) ;
54
57
You can’t perform that action at this time.
0 commit comments