Auth

end user' login by google, facebook, apple, crypto' signature

Auth: None (appId required; legacy App JWT accepted)

End user login endpoint, should be used with Authorization header set to App JWT. App JWT example: {JWT token}

Provide appId in the request body to resolve app context. Legacy Authorization app token is also accepted for backward compatibility.

post/v1/users/login

Request

  • Base URL: https://api.chat.ethora.com
  • URL: https://api.chat.ethora.com/v1/users/login
  • Auth: none required

Request body

OR

Response

{
  success: boolean,
  user: {
    defaultWallet: {
      walletAddress: string
    },
    _id: string,
    firstName: string,
    lastName: string,
    email: string,
    username: string,
    tags: string[],
    profileImage: string,
    emails: [
      {
        loginType: string,
        email: string,
        verified: boolean,
        _id: string
      }
    ],
    appId: string,
    xmppPassword: string,
    roles: string[],
    isProfileOpen: boolean,
    isAssetsOpen: boolean,
    isAgreeWithTerms: boolean,
    homeScreen: string,
    registrationChannelType: string,
    createdAt: string,
    updatedAt: string
  },
  token: string,
  refreshToken: string
}
successboolean required
tokenstring required
refreshTokenstring required
wsTokenstring
isAllowedNewAppCreateboolean nullable

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.