Skip to content

Commit

Permalink
feat: Add linkedin_oidc OAuthProvider (#791)
Browse files Browse the repository at this point in the history
* feat: add linkedin_oidc OAuthProvider

* style: disable lint for file

* refactor: use camel case
  • Loading branch information
Vinzent03 authored Jan 9, 2024
1 parent 5ad7a67 commit 0966428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gotrue/lib/src/gotrue_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class GoTrueClient {
options: GotrueRequestOptions(
headers: _headers,
body: {
'provider': provider.name,
'provider': provider.snakeCase,
'id_token': idToken,
'nonce': nonce,
'gotrue_meta_security': {'captcha_token': captchaToken},
Expand Down Expand Up @@ -889,7 +889,7 @@ class GoTrueClient {
required Map<String, String>? queryParams,
bool skipBrowserRedirect = false,
}) async {
final urlParams = {'provider': provider.name};
final urlParams = {'provider': provider.snakeCase};
if (scopes != null) {
urlParams['scopes'] = scopes;
}
Expand Down
1 change: 1 addition & 0 deletions packages/gotrue/lib/src/types/o_auth_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ enum OAuthProvider {
kakao,
keycloak,
linkedin,
linkedinOidc,
notion,
slack,
spotify,
Expand Down

0 comments on commit 0966428

Please sign in to comment.