refreshSession()
Use nhost.auth.refreshSession
to refresh the session with either the current internal refresh token or an external refresh token.
Note: The Nhost client automatically refreshes the session when the user is authenticated but nhost.auth.refreshSession
can be useful in some special cases.
// Refresh the session with the the current internal refresh token.
nhost.auth.refreshToken()
// Refresh the session with an external refresh token.
nhost.auth.refreshToken(refreshToken)
Parameters
refreshToken optional string