Change sign-in message

This commit is contained in:
Simon Bihel 2022-02-08 10:21:11 +00:00
parent 0f7adfb5ab
commit a9414d5e21
No known key found for this signature in database
GPG Key ID: B7013150BEAA28FD
4 changed files with 1890 additions and 5250 deletions

7125
js/ui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -50,7 +50,7 @@
},
"dependencies": {
"@portis/web3": "^4.0.6",
"@spruceid/siwe-web3modal": "^0.1.5",
"@spruceid/siwe-web3modal": "^0.1.6",
"@toruslabs/torus-embed": "^1.18.3",
"@walletconnect/web3-provider": "^1.6.6",
"fortmatic": "^2.2.1",

View File

@ -15,8 +15,6 @@
export let oidc_nonce: string;
export let client_id: string;
let uri: string = window.location.href.split('?')[0];
// Could be exposed in the future.
export let useENS: boolean = true;
@ -24,12 +22,13 @@
let client = new Client({
session: {
domain,
uri,
domain: window.location.host,
uri: window.location.origin,
useENS,
version: '1',
// TODO: Vet this as the default statement.
statement: 'Sign-In With Ethereum OpenID-Connect',
statement: `You are signing-in to ${domain}.`,
resources: [redirect],
},
modal: {
theme: 'dark',

View File

@ -1,6 +1,6 @@
module.exports = {
darkMode: 'class',
purge: ['./src/**/*.{html,js,svelte,ts}'],
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
screens: {
@ -177,4 +177,4 @@ module.exports = {
'1/10': '0 10%',
},
},
};
};