Refresh sign in token

Username and password are used only when signing in/signing up. A token is received during sign in/sign up and is used for the rest of the API requests. If any authentication error occurs during these API requests, the user is taken to the sign in page.