When using cookie authentication, client has no way to detect if the user is authenticated or not.
This method can be used to check if the user is authenticated and populate the currentAccount.
When using token authentication, this method can be used to set the tokens.
This is useful when the tokens are stored in a secure location and you want to resume the session.
When using cookie authentication, client has no way to detect if the user is authenticated or not. This method can be used to check if the user is authenticated and populate the currentAccount.