Credentials
Credentials
classThis 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
.
Returns the API credentials for SoundCloud.
Returns Object
Returns the API credentials for YouTube.
Returns Object
Returns the user’s credentials for both SoundCloud and YouTube.
Returns Object
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
service
String The wanted service.Returns Object
Default credentials values.
Returns Object
Stores the given credentials for a service in the local storage.
Parameters
Returns null
Removes a service’s credentials from the local storage. Used when signing out from SoundCloud or YouTube.
Parameters
service
String The concerned service.Returns null