en | fr

The Credentials class


This class manages the credentials used inside the application.

It both deals with API credentials and the user’s one. The API ones are hard stored in this file and the user’s ones are managed through localStorage.


soundcloud

Returns the API credentials for SoundCloud.

Returns Object


youtube

Returns the API credentials for YouTube.

Returns Object


user

Returns the user’s credentials for both SoundCloud and YouTube.

Returns Object


read

Reads the user’s credentials for a given service in the local storage or reads from the default hash if the former isn’t set.

Parameters

Returns Object


default

Default credentials values.

Returns Object


store

Stores the given credentials for a service in the local storage.

Parameters

Returns null


remove

Removes a service’s credentials from the local storage. Used when signing out from SoundCloud or YouTube.

Parameters

Returns null