store

inline suspend fun CredentialsContainer.store(credential: Credential)(source)

The store() method of the CredentialsContainer stores a set of credentials for the user inside a Credential instance, returning this in a Promise.

MDN Reference