Skip to content

feat: add additional oauth attributes including prompt, login-hint, etc#41

Merged
jpoehnelt merged 1 commit intomainfrom
feat/oauth-attributes
Feb 11, 2025
Merged

feat: add additional oauth attributes including prompt, login-hint, etc#41
jpoehnelt merged 1 commit intomainfrom
feat/oauth-attributes

Conversation

@jpoehnelt
Copy link
Member

@jpoehnelt jpoehnelt commented Feb 11, 2025

<drive-picker
  app-id="YOUR_APP_ID"
  client-id="YOUR_CLIENT_ID"
  prompt=""
  login-hint="me@jpoehnelt.dev"
  scope="https://www.googleapis.com/auth/drive.file profile email"
  hd=""
>
  <drive-picker-docs-view></drive-picker-docs-view>
</drive-picker>

The picker:oauth:response event object looks like this with the above attributes:

{
  "access_token": "ya29.OMITTED",
  "authuser": "1",
  "expires_in": 3599,
  "prompt": "consent",
  "scope": "email profile https://www.googleapis.com/auth/userinfo.email openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive.file",
  "token_type": "Bearer"
}

also split category for oauth in storyboook table

image

cc #37

also split category for oauth in storyboook table
@jpoehnelt jpoehnelt merged commit c133936 into main Feb 11, 2025
15 checks passed
@jpoehnelt jpoehnelt deleted the feat/oauth-attributes branch February 11, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant