/**
 * A class, representing the credentials used for authenticating a [[User]].
 */ export class Credentials { param { string } facebookToken returns public static facebook ( facebookToken ) { return { data : facebookToken , provider : "facebook" , } ; } param { string } googleToken returns public static google ( googleToken ) { return { data : googleToken , provider : "google" , } ; } param username param password param createUser returns public static usernamePassword ( username , password , createUser ? ) { return { data : username , provider : "password" , user_info : { register : createUser || false , password , } , } ; } param adToken returns public static azureAD ( adToken ) { return { data : adToken , provider : "azuread" , } ; } param jwtToken returns see https * Object Server documentation} for custom authentication via JWT.
      public static jwt ( jwtToken ) { return { data : jwtToken , provider : "jwt" , } ; } param adminToken returns public static admin ( adminToken ) { return { data : adminToken , provider : "__admin" , } ; } returns public static anonymous ( ) { return { data : null , provider : "__anonymous" , } ; } param nickname param isAdmin public static nickname ( nickname , isAdmin = false ) { return { data : nickname , provider : "nickname" , user_info : { is_admin : isAdmin , } , } ; } param provider param token param userInfo returns see https * Object Server docs} for advanced custom authentication.
      public static Custom ( provider , token , userInfo ? ) { return { provider , data : token , user_info : userInfo , } ; } hidden public data : string ; hidden public provider : string ; hidden public user_info ? : any ; }