# setSession()
Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session.
If the refresh token or access token in the current session is invalid, an error will be thrown.
- setSession() takes in a refresh token and uses it to get a new session.
- The refresh token can only be used once to obtain a new session.
# setSession()
Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session.
If the refresh token or access token in the current session is invalid, an error will be thrown.
- setSession() takes in a refresh token and uses it to get a new session.
- The refresh token can only be used once to obtain a new session.