Skip to content

Commit d02a945

Browse files
committed
add explicit callout for user.email in the oauth skill
1 parent 02631f9 commit d02a945

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/skills/oauth/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You don't write the `/auth/*` routes yourself — the middleware adds them. Don'
4545

4646
## Reading the current user
4747

48-
Call `getOAuthUserData(rawRequest)` from any route. In Hono, `rawRequest` is `c.req.raw`. It returns the session data (with `user.username` and other Val Town profile fields) if the request is authenticated, or `null` otherwise.
48+
Call `getOAuthUserData(rawRequest)` from any route. In Hono, `rawRequest` is `c.req.raw`. It returns the session data (with `user.username`, `user.email`, and other Val Town profile fields) if the request is authenticated, or `null` otherwise.
4949

5050
```ts
5151
app.get("/", async (c) => {

0 commit comments

Comments
 (0)