Authorization Code Flow

If the user has been redirected to the Redirect URI, you then see if you have a code, or a error.

If you have a code then you are logged in