Created
November 5, 2020 17:43
-
-
Save wess/7c58ffe2c618520bd9ad0297efecc1f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn auth_request<'a>() -> AuthorizationRequest<'a> { | |
let config = Config::env(); | |
let scopes:Vec<String> = config.github.scope; | |
let request = | |
client() | |
.authorize_url(CsrfToken::new_random); | |
for scope in scopes.iter() { | |
request.add_scope( | |
Scope::new(scope.clone()) | |
); | |
} | |
request | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment