Skip to content

Commit

Permalink
docs: fix oauth-token code sample in README (#34)
Browse files Browse the repository at this point in the history
Attribute in code sample for using oauth token was using the attribute `oauth` instead of `oauth-token`.
  • Loading branch information
jj-style authored Jan 29, 2025
1 parent 7e46e12 commit e2668df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ customElements.define(
If you already have an OAuth token, you can pass it to the `drive-picker` component using the `oauth-token` attribute. This will authenticate the user without requiring them to sign in again.

```html
<drive-picker app-id="YOUR_APP_ID" oauth="OAUTH_TOKEN"></drive-picker>
<drive-picker app-id="YOUR_APP_ID" oauth-token="OAUTH_TOKEN"></drive-picker>
```

If you don't have an OAuth token, you can listen for the `"picker:authenticated"` event to get the token after the user has authenticated. This library wraps the [Google Identity Servies library](https://developers.google.com/identity/oauth2/web/guides/overview) to make it easier to authenticate users.
Expand Down

0 comments on commit e2668df

Please sign in to comment.