setAutoLoginCredentials
@wuespace/telestion / auth / setAutoLoginCredentials
setAutoLoginCredentials(
credentials
):void
Sets credentials with which to auto-login.
If an auto-login attempt fails, the credentials will be cleared for the remainder of the session and a login form shown to the user. If the user logs in successfully, the credentials will be updated.
Security Warning¶
Use this function only if user authentication is handled by a separate system. Calling this function in your application means your NATS credentials will be hard-coded into your application, which is a security risk.
Parameters¶
• credentials: Object
The credentials to store
• credentials.natsUrl: string
= undefined
The URL of the NATS server to connect to.
• credentials.password: string
= undefined
The password to use when connecting to the NATS server.
• credentials.username: string
= undefined
The username to use when connecting to the NATS server.
Returns¶
void
Deprecated¶
No, this won’t be removed anytime soon. You can ignore this warning if you’re aware of the security implications.