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.refreshSession()
// Refresh the session with an external refresh token.nhost.auth.refreshSession(refreshToken)Parameters
Section titled “Parameters”refreshToken optional string