Skip to content

Commit

Permalink
fix: add "sol" to AuthType (Typescript) (#194)
Browse files Browse the repository at this point in the history
* add "sol" to AuthType

* replace AuthType with AuthenticationType from SDK
  • Loading branch information
comingAlive authored Feb 7, 2022
1 parent 627231d commit 21670cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hooks/core/useMoralis/_useMoralisAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ const initialAuth: Authentication = {
error: null,
};

export type AuthType = "dot" | "polkadot" | "kusama" | "erd" | "elrond";

export interface AuthenticateOptions {
onError?: (error: Error) => void;
onSuccess?: (user: MoralisType.User) => void;
onComplete?: () => void;
throwOnError?: boolean;
type?: AuthType;
type?: MoralisType.AuthenticationType;
provider?: MoralisType.Web3ProviderType;
connector?: MoralisType.Connector;
chainId?: number;
Expand Down

0 comments on commit 21670cb

Please sign in to comment.