Skip to content

Commit

Permalink
FacebookUser picture field updated (#734)
Browse files Browse the repository at this point in the history
Co-authored-by: Karolus <[email protected]>
Co-authored-by: pilcrowOnPaper <[email protected]>
  • Loading branch information
3 people authored Jun 23, 2023
1 parent 75c8fc4 commit 151cdf5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .auri/$as1qhsh5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "@lucia-auth/oauth" # package name
type: "patch" # "major", "minor", "patch"
---

Fix `FacebookUser` type
9 changes: 8 additions & 1 deletion documentation-v2/content/oauth/providers/facebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ type FacebookTokens = {
type FacebookUser = {
id: string;
name: string;
picture: string;
picture: {
data: {
height: number;
is_silhouette: boolean;
url: string;
width: number;
};
};
};
```
9 changes: 8 additions & 1 deletion packages/oauth/src/providers/facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,12 @@ export const facebook = <_Auth extends Auth>(auth: _Auth, config: Config) => {
export type FacebookUser = {
id: string;
name: string;
picture: string;
picture: {
data: {
height: number;
is_silhouette: boolean;
url: string;
width: number;
};
};
};

0 comments on commit 151cdf5

Please sign in to comment.