pub fn exchange_github_code(
    request: Json<ExchangeGithubCodeRequest>,
    github_auth_service: GithubAuthenticatorService,
) -> AnyApiResult<ExchangeGithubCodeResponse> {
    github_auth_service
        .exchange_code_for_token(&request.0.code)
        .map(|token| ExchangeGithubCodeResponse { token })
        .into()
}
/// Exchange github access code for token
Exchange github access code for token
Exchange github access code for token
pub fn exchange_github_code(
    request: Json<ExchangeGithubCodeRequest>,
    github_auth_service: GithubAuthenticatorService,
) -> AnyApiResult<ExchangeGithubCodeResponse> {
    github_auth_service
        .exchange_code_for_token(&request.0.code)
        .map(|token| ExchangeGithubCodeResponse { token })
        .into()
}
pub fn exchange_github_code ( request : Json < ExchangeGithubCodeRequest > , github_auth_service : GithubAuthenticatorService , ) -> AnyApiResult < ExchangeGithubCodeResponse > { github_auth_service . exchange_code_for_token ( & request . 0 . code ) . map ( | token | ExchangeGithubCodeResponse { token } ) . into ( ) }
Exchange github access code for token
Exchange github access code for token
request
Json<ExchangeGithubCodeRequest>
github_auth_service
GithubAuthenticatorService
request
Json<ExchangeGithubCodeRequest>
github_auth_service
GithubAuthenticatorService