'code', 'client_id' => CLIENT_ID, 'redirect_uri' => REDIRECT_URI, 'state' => $state, 'code_challenge' => $challenge, 'code_challenge_method' => 'S256', ]); header('Location: ' . AUTHORIZE_URI . '?' . $params); exit;