class GdsApi::AccountApi
def validate_auth_response(code:, state:)
-
(Hash)
- The value for the govuk_account_session header, the path to redirect the user to, and the GA client ID (if there is one)
Parameters:
-
state
(String
) -- The OAuth state parameter, from the auth server. -
code
(String
) -- The OAuth code parameter, from the auth server.
def validate_auth_response(code:, state:) post_json("#{endpoint}/api/oauth2/callback", code:, state:) end