Skip to content

Change Auth Domain #750

@jaysondave

Description

@jaysondave

When login with metamask, it is warning like below.
The site you're attempting to sign into doesn't match the domain in the request. Proceed with caution.
image

I deployed energy web repo to my own domain.

Steps to reproduce

  1. Go to switchboard.met3r.com
  2. Login to metamask

https://energy-web-foundation-iam-client-lib.readthedocs-hosted.com/setup/initialization/
The docs says a way to override auth domain in setChainConfig method but there is not any option of auth.domain in ChainConfig interface.

export interface ChainConfig {
    chainName: Chain;
    chainDisplayName: string;
    rpcUrl: string;
    ensRegistryAddress: string;
    ensResolverV2Address: string;
    ensResolverAddress: string;
    ensPublicResolverAddress: string;
    domainNotifierAddress: string;
    assetManagerAddress: string;
    didRegistryAddress: string;
    claimManagerAddress: string;
    stakingPoolFactoryAddress: string;
    credentialRevocationRegistryAddress: string;
    claimsRevocationRegistryAddress: string;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions