diff --git a/docs/functions/discord.getTokens.html b/docs/functions/discord.getTokens.html index 8cff274..d936e58 100644 --- a/docs/functions/discord.getTokens.html +++ b/docs/functions/discord.getTokens.html @@ -1,10 +1,10 @@ getTokens | Easy Auth API Reference | ExWeiv Apps

Generated using TypeDoc
+

Returns Promise<discord.TokensResponse>

Generated using TypeDoc

  • Creates a redirect url for authenticating user via Discord

    Parameters

    Returns string

Generated using TypeDoc
+

Returns string

Generated using TypeDoc

  • Gets tokens for API calls to Facebook. Keep in mind Facebook has a different system for tokens. Facebook doesn't have any refresh_tokens instead you exhcnage expired tokens with new ones.

    Parameters

    Returns Promise<facebook.TokensResponse>

Generated using TypeDoc
+

Returns Promise<facebook.TokensResponse>

Generated using TypeDoc

  • Creates a redirect url for authenticating user via Facebook

    Parameters

    Returns string

Generated using TypeDoc
+

Returns string

Generated using TypeDoc

Generated using TypeDoc
+

Returns Promise<github.TokensResponse>

Generated using TypeDoc

  • Creates a redirect url for authenticating user via GitHub

    Parameters

    Returns string

Generated using TypeDoc
+

Returns string

Generated using TypeDoc

Generated using TypeDoc
+

Returns Promise<google.TokensResponse>

Generated using TypeDoc

  • Creates a redirect url for authenticating user via Google

    Parameters

    Returns string

Generated using TypeDoc
+

Returns string

Generated using TypeDoc

  • This function handles the user authentication and returns a session token to be used in the frontend with wix-members-frontend APIs.

    Parameters

    • provider: OAuthProviders

      Provider you want to use for the process (This function currently does not support Steam)

    • options: OAuthOptions

      authUser options for the process related options based on the provider

      -

    Returns Promise<string>

Generated using TypeDoc
+

Returns Promise<string>

Generated using TypeDoc

  • Creates a redirect url for authenticating user via Steam

    Parameters

    Returns string

Generated using TypeDoc
+

Returns string

Generated using TypeDoc

  • Gets user data from Steam

    Parameters

    • options: steam.AuthOptions

      Options that's used when getting user data from Steam.

    • Optional client_secret: string

      Defaults to undefined, if you don't pass a client_secret (apiKey) API will use Wix Secret Manager to find client_secret named as SteamClientSecret.

      -

    Returns Promise<AuthResponse>

Generated using TypeDoc
+

Returns Promise<AuthResponse>

Generated using TypeDoc

Read Discord Docs for more info about anything here.

-

Index

Type Aliases

Index

Type Aliases

Generated using TypeDoc

Read Facebook Docs for more info about anything here.

-

Index

Type Aliases

Index

Type Aliases

Generated using TypeDoc

Read GitHub Docs for more info about anything here.

-

Index

Type Aliases

Index

Type Aliases

Generated using TypeDoc

Read Google Docs for more info about anything here.

-

Index

Type Aliases

Index

Type Aliases

Generated using TypeDoc

Helper functions to quickly integrate OAuth providers with Wix Members in backend

-

Index

Type Aliases

Index

Type Aliases

Functions

Generated using TypeDoc

Steam itself doesn't provide any OAuth 2.0 or something similar to authenticate users with their APIs. You'll need to implement a secure way to authenticate users via Steam. This isn't a realy OAuth 2.0 method since you won't get any access_token after user sign-in to Steam, what you'll get is users's public Steam ID (number). That you can use to get public info of that user after successful login.

-

Index

Type Aliases

Index

Type Aliases

Functions

Generated using TypeDoc
-

AuthResponse: {
    [key: string]: any;
}

Type declaration

  • [key: string]: any

Generated using TypeDoc
+

AuthResponse: {
    [key: string]: any;
}

Type declaration

  • [key: string]: any

Generated using TypeDoc
-

AuthOptions: {
    client_id: string;
    code: string;
    grant_type?: string;
    redirect_uri: string;
}

Type declaration

  • client_id: string
  • code: string
  • Optional grant_type?: string
  • redirect_uri: string

Generated using TypeDoc
+

AuthOptions: {
    client_id: string;
    code: string;
    grant_type?: string;
    redirect_uri: string;
}

Type declaration

  • client_id: string
  • code: string
  • Optional grant_type?: string
  • redirect_uri: string

Generated using TypeDoc
-

RedirectURLOptions: {
    client_id: string;
    prompt?: string;
    redirect_uri: string;
    response_type?: string;
    scope?: string[];
    state?: string;
}

Type declaration

  • client_id: string
  • Optional prompt?: string
  • redirect_uri: string
  • Optional response_type?: string
  • Optional scope?: string[]
  • Optional state?: string

Generated using TypeDoc
+

RedirectURLOptions: {
    client_id: string;
    prompt?: string;
    redirect_uri: string;
    response_type?: string;
    scope?: string[];
    state?: string;
}

Type declaration

  • client_id: string
  • Optional prompt?: string
  • redirect_uri: string
  • Optional response_type?: string
  • Optional scope?: string[]
  • Optional state?: string

Generated using TypeDoc
-

TokensOptions: {
    client_id: string;
    client_secret: string;
    code?: string;
    grant_type?: string;
    redirect_uri?: string;
    refresh_token?: string;
}

Type declaration

  • client_id: string
  • client_secret: string
  • Optional code?: string
  • Optional grant_type?: string
  • Optional redirect_uri?: string
  • Optional refresh_token?: string

Generated using TypeDoc
+

TokensOptions: {
    client_id: string;
    client_secret: string;
    code?: string;
    grant_type?: string;
    redirect_uri?: string;
    refresh_token?: string;
}

Type declaration

  • client_id: string
  • client_secret: string
  • Optional code?: string
  • Optional grant_type?: string
  • Optional redirect_uri?: string
  • Optional refresh_token?: string

Generated using TypeDoc
-

TokensResponse: {
    access_token: string;
    expires_in: number;
    refresh_token: string;
    scope: string;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • refresh_token: string
  • scope: string
  • token_type: string

Generated using TypeDoc
+

TokensResponse: {
    access_token: string;
    expires_in: number;
    refresh_token: string;
    scope: string;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • refresh_token: string
  • scope: string
  • token_type: string

Generated using TypeDoc
-

AuthOptions: {
    client_id: string;
    code?: string;
    fields?: string[];
    redirect_uri: string;
}

Type declaration

  • client_id: string
  • Optional code?: string
  • Optional fields?: string[]
  • redirect_uri: string

Generated using TypeDoc
+

AuthOptions: {
    client_id: string;
    code?: string;
    fields?: string[];
    redirect_uri: string;
}

Type declaration

  • client_id: string
  • Optional code?: string
  • Optional fields?: string[]
  • redirect_uri: string

Generated using TypeDoc
-

RedirectURLOptions: {
    client_id: string;
    redirect_uri: string;
    response_type?: string[];
    scope?: string[];
    state?: string;
}

Type declaration

  • client_id: string
  • redirect_uri: string
  • Optional response_type?: string[]
  • Optional scope?: string[]
  • Optional state?: string

Generated using TypeDoc
+

RedirectURLOptions: {
    client_id: string;
    redirect_uri: string;
    response_type?: string[];
    scope?: string[];
    state?: string;
}

Type declaration

  • client_id: string
  • redirect_uri: string
  • Optional response_type?: string[]
  • Optional scope?: string[]
  • Optional state?: string

Generated using TypeDoc
-

TokensOptions: {
    client_id: string;
    client_secret: string;
    code?: string;
    fb_exchange_token?: string;
    grant_type?: string;
    redirect_uri?: string;
}

Type declaration

  • client_id: string
  • client_secret: string
  • Optional code?: string
  • Optional fb_exchange_token?: string
  • Optional grant_type?: string
  • Optional redirect_uri?: string

Generated using TypeDoc
+

TokensOptions: {
    client_id: string;
    client_secret: string;
    code?: string;
    fb_exchange_token?: string;
    grant_type?: string;
    redirect_uri?: string;
}

Type declaration

  • client_id: string
  • client_secret: string
  • Optional code?: string
  • Optional fb_exchange_token?: string
  • Optional grant_type?: string
  • Optional redirect_uri?: string

Generated using TypeDoc
-

TokensResponse: {
    access_token: string;
    expires_in: number;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • token_type: string

Generated using TypeDoc
+

TokensResponse: {
    access_token: string;
    expires_in: number;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • token_type: string

Generated using TypeDoc
-

AuthOptions: {
    client_id: string;
    code: string;
    redirect_uri: string;
    repository_id?: string;
}

Type declaration

  • client_id: string
  • code: string
  • redirect_uri: string
  • Optional repository_id?: string

Generated using TypeDoc
+

AuthOptions: {
    client_id: string;
    code: string;
    redirect_uri: string;
    repository_id?: string;
}

Type declaration

  • client_id: string
  • code: string
  • redirect_uri: string
  • Optional repository_id?: string

Generated using TypeDoc
-

RedirectURLOptions: {
    allow_signup?: boolean;
    client_id: string;
    redirect_uri: string;
    state?: string;
}

Type declaration

  • Optional allow_signup?: boolean
  • client_id: string
  • redirect_uri: string
  • Optional state?: string

Generated using TypeDoc
+

RedirectURLOptions: {
    allow_signup?: boolean;
    client_id: string;
    redirect_uri: string;
    state?: string;
}

Type declaration

  • Optional allow_signup?: boolean
  • client_id: string
  • redirect_uri: string
  • Optional state?: string

Generated using TypeDoc
-

TokensOptions: {
    client_id: string;
    client_secret: string;
    code?: string;
    grant_type?: string;
    redirect_uri?: string;
    refresh_token?: string;
    repository_id?: string;
}

Type declaration

  • client_id: string
  • client_secret: string
  • Optional code?: string
  • Optional grant_type?: string
  • Optional redirect_uri?: string
  • Optional refresh_token?: string
  • Optional repository_id?: string

Generated using TypeDoc
+

TokensOptions: {
    client_id: string;
    client_secret: string;
    code?: string;
    grant_type?: string;
    redirect_uri?: string;
    refresh_token?: string;
    repository_id?: string;
}

Type declaration

  • client_id: string
  • client_secret: string
  • Optional code?: string
  • Optional grant_type?: string
  • Optional redirect_uri?: string
  • Optional refresh_token?: string
  • Optional repository_id?: string

Generated using TypeDoc
-

TokensResponse: {
    access_token: string;
    expires_in: number;
    refresh_token: string;
    refresh_token_expires_in: number;
    scope: string;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • refresh_token: string
  • refresh_token_expires_in: number
  • scope: string
  • token_type: string

Generated using TypeDoc
+

TokensResponse: {
    access_token: string;
    expires_in: number;
    refresh_token: string;
    refresh_token_expires_in: number;
    scope: string;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • refresh_token: string
  • refresh_token_expires_in: number
  • scope: string
  • token_type: string

Generated using TypeDoc
-

AuthOptions: {
    client_id: string;
    code: string;
    grant_type?: string;
    redirect_uri: string;
}

Type declaration

  • client_id: string
  • code: string
  • Optional grant_type?: string
  • redirect_uri: string

Generated using TypeDoc
+

AuthOptions: {
    client_id: string;
    code: string;
    grant_type?: string;
    redirect_uri: string;
}

Type declaration

  • client_id: string
  • code: string
  • Optional grant_type?: string
  • redirect_uri: string

Generated using TypeDoc
-

RedirectURLOptions: {
    access_type?: string;
    client_id: string;
    prompt?: string;
    redirect_uri: string;
    response_type?: string;
    scope?: string[];
    state?: string;
}

Type declaration

  • Optional access_type?: string
  • client_id: string
  • Optional prompt?: string
  • redirect_uri: string
  • Optional response_type?: string
  • Optional scope?: string[]
  • Optional state?: string

Generated using TypeDoc
+

RedirectURLOptions: {
    access_type?: string;
    client_id: string;
    prompt?: string;
    redirect_uri: string;
    response_type?: string;
    scope?: string[];
    state?: string;
}

Type declaration

  • Optional access_type?: string
  • client_id: string
  • Optional prompt?: string
  • redirect_uri: string
  • Optional response_type?: string
  • Optional scope?: string[]
  • Optional state?: string

Generated using TypeDoc
-

TokensOptions: {
    client_id: string;
    client_secret?: string;
    code: string;
    grant_type?: string;
    redirect_uri: string;
    refresh_token?: string;
}

Type declaration

  • client_id: string
  • Optional client_secret?: string
  • code: string
  • Optional grant_type?: string
  • redirect_uri: string
  • Optional refresh_token?: string

Generated using TypeDoc
+

TokensOptions: {
    client_id: string;
    client_secret?: string;
    code: string;
    grant_type?: string;
    redirect_uri: string;
    refresh_token?: string;
}

Type declaration

  • client_id: string
  • Optional client_secret?: string
  • code: string
  • Optional grant_type?: string
  • redirect_uri: string
  • Optional refresh_token?: string

Generated using TypeDoc
-

TokensResponse: {
    access_token: string;
    expires_in: number;
    refresh_token: string;
    scope: string;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • refresh_token: string
  • scope: string
  • token_type: string

Generated using TypeDoc
+

TokensResponse: {
    access_token: string;
    expires_in: number;
    refresh_token: string;
    scope: string;
    token_type: string;
}

Type declaration

  • access_token: string
  • expires_in: number
  • refresh_token: string
  • scope: string
  • token_type: string

Generated using TypeDoc
-

Generated using TypeDoc
+

Generated using TypeDoc
-

OAuthProviders: "google" | "facebook" | "discord" | "github"

Generated using TypeDoc
+

OAuthProviders: "google" | "facebook" | "discord" | "github"

Generated using TypeDoc
-

AuthOptions: {
    steamId: string;
}

Type declaration

  • steamId: string

Generated using TypeDoc
+

AuthOptions: {
    steamId: string;
}

Type declaration

  • steamId: string

Generated using TypeDoc
-

RedirectURLOptions: {
    realm: string;
    redirect_uri: string;
    state?: string;
}

Type declaration

  • realm: string
  • redirect_uri: string
  • Optional state?: string

Generated using TypeDoc
+

RedirectURLOptions: {
    realm: string;
    redirect_uri: string;
    state?: string;
}

Type declaration

  • realm: string
  • redirect_uri: string
  • Optional state?: string

Generated using TypeDoc