Skip to content

Commit 1600b22

Browse files
committed
Merge branch 'feature/add-get-consent-url' into development
2 parents f29cf48 + fa44fa3 commit 1600b22

File tree

3 files changed

+140
-3
lines changed

3 files changed

+140
-3
lines changed

Cargo.lock

Lines changed: 133 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pub fn get_consent_url(client_id: String, redirect_uri: String) -> String {
2+
format!(
3+
"https://accounts.google.com/o/oauth2/auth?client_id={}&redirect_uri={}&scope=email%20profile&response_type=code&access_type=offline",
4+
client_id, redirect_uri
5+
)
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
pub mod get_consent_url;
12
pub mod get_profile;
23
pub mod get_token;

0 commit comments

Comments
 (0)