readAuthenticationFromStorage

fun readAuthenticationFromStorage(passwordStorage: TokenStorage?, factory: <Error class: unknown class>)

Sets authentication to the one that is read from the password storage and constructed with the given factory.

This method does anything only when it's called the first time for an instance. All the subsequent calls do nothing.

Parameters

passwordStorage

Password storage.

factory

Authentication factory.