Skip to content

Commit

Permalink
Release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Aug 5, 2024
1 parent d0cd07b commit 675bf25
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To integrate it with your project, you will need to add the following script tag
});
</script>
<script defer="defer"
src="https://cdn.jsdelivr.net/gh/supertokens/[email protected]/build/static/js/main.38fe3894.js"></script>
src="https://cdn.jsdelivr.net/gh/supertokens/[email protected]/build/static/js/main.75ecfc8b.js"></script>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "/static/js/main.38fe3894.js",
"main.js": "/static/js/main.75ecfc8b.js",
"index.html": "/index.html",
"main.38fe3894.js.map": "/static/js/main.38fe3894.js.map"
"main.75ecfc8b.js.map": "/static/js/main.75ecfc8b.js.map"
},
"entrypoints": [
"static/js/main.38fe3894.js"
"static/js/main.75ecfc8b.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link href="//fonts.googleapis.com/css2?family=Rubik:wght@400&display=swap" rel="stylesheet"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.38fe3894.js"></script></head><body><script>window.addEventListener("supertokensScriptLoaded",(()=>{supertokensInit("supertokensui",{appInfo:{websiteDomain:"http://localhost:3000",apiDomain:"http://localhost:3001",appName:"My Demo App"},style:"\n [data-supertokens~=container] {\n --palette-background: 51, 51, 51;\n --palette-inputBackground: 41, 41, 41;\n --palette-inputBorder: 41, 41, 41;\n --palette-textTitle: 255, 255, 255;\n --palette-textLabel: 255, 255, 255;\n --palette-textPrimary: 255, 255, 255;\n --palette-error: 173, 46, 46;\n --palette-textInput: 169, 169, 169;\n --palette-textLink: 169, 169, 169;\n }\n "})}))</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="supertokensui"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link href="//fonts.googleapis.com/css2?family=Rubik:wght@400&display=swap" rel="stylesheet"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.75ecfc8b.js"></script></head><body><script>window.addEventListener("supertokensScriptLoaded",(()=>{supertokensInit("supertokensui",{appInfo:{websiteDomain:"http://localhost:3000",apiDomain:"http://localhost:3001",appName:"My Demo App"},style:"\n [data-supertokens~=container] {\n --palette-background: 51, 51, 51;\n --palette-inputBackground: 41, 41, 41;\n --palette-inputBorder: 41, 41, 41;\n --palette-textTitle: 255, 255, 255;\n --palette-textLabel: 255, 255, 255;\n --palette-textPrimary: 255, 255, 255;\n --palette-error: 173, 46, 46;\n --palette-textInput: 169, 169, 169;\n --palette-textLink: 169, 169, 169;\n }\n "})}))</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="supertokensui"></div></body></html>
1 change: 0 additions & 1 deletion build/static/js/main.38fe3894.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.75ecfc8b.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Session from "supertokens-auth-react/recipe/session";
import EmailVerification from "supertokens-auth-react/recipe/emailverification"
import MFA from "supertokens-auth-react/recipe/multifactorauth"
import TOTP from "supertokens-auth-react/recipe/totp"
import UserRoles from "supertokens-auth-react/recipe/userroles"

import { EmailPasswordPreBuiltUI } from "supertokens-auth-react/recipe/emailpassword/prebuiltui";
import { ThirdPartyPreBuiltUI } from "supertokens-auth-react/recipe/thirdparty/prebuiltui";
Expand Down Expand Up @@ -75,6 +76,8 @@ export let PreBuiltUIList: any[] = [];
}
};

(window as any).supertokensUIUserRoles = UserRoles;

function supertokensUIInit(divId: string, customConfig: any) {
SuperTokens.init(customConfig);

Expand Down

0 comments on commit 675bf25

Please sign in to comment.