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": { "dependencies": {
"@portis/web3": "^4.0.6", "@portis/web3": "^4.0.6",
"@spruceid/siwe-web3modal": "^0.1.5", "@spruceid/siwe-web3modal": "^0.1.6",
"@toruslabs/torus-embed": "^1.18.3", "@toruslabs/torus-embed": "^1.18.3",
"@walletconnect/web3-provider": "^1.6.6", "@walletconnect/web3-provider": "^1.6.6",
"fortmatic": "^2.2.1", "fortmatic": "^2.2.1",

View File

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

View File

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