zippie-api/Passport

Methods

(static) getAvatar()

Get the users encoded avatar image

Source:

(static) getEmail()

Get the users email address

Source:

(static) getFullName()

Get the users full name

Source:

(static) getLanguage()

Get the users preferred language

Source:

(static) getPhone()

Get the users phone number

Source:

(static) init(vault)

Initialize Passport API by passing in vault instance.

Parameters:
Name Type Description
vault Vault

reference to vault

Source:

(static) props()

Get all user passport properties

Source:

(static) setAvatar(image)

Set the users encoded avatar image

Parameters:
Name Type Description
image string

Users' new avatar

Source:

(static) setEmail(email)

Set the users email address

Parameters:
Name Type Description
email string

Users' new email

Source:

(static) setFullName(fullname)

Set the users full name

Parameters:
Name Type Description
fullname string

Users' new name

Source:

(static) setLanguage(language)

Set the users preferred language

Parameters:
Name Type Description
language string

Users' new language

Source:

(static) setPhone(phone)

Set the users phone number

Parameters:
Name Type Description
phone string

Users' new phone number

Source:

(static) update(props)

Update multiple user details

Parameters:
Name Type Description
props object

Properties to update and their values.

Source: