Extracts the authorization code from user input, which is either the bare code or the full redirect URL the browser was sent to.
if no code can be extracted, if the redirect URL is not the sign in callback or if its state does not match
Extracts the authorization code from user input, which is either the bare code or the full redirect URL the browser was sent to.