Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix webhook & add examples #100

Merged
merged 1 commit into from
Nov 14, 2023
Merged

fix webhook & add examples #100

merged 1 commit into from
Nov 14, 2023

Conversation

theomonnom
Copy link
Member

No description provided.

@theomonnom theomonnom requested a review from davidzhao November 14, 2023 07:17
@@ -155,21 +155,20 @@ def verify(self, token: str) -> Claims:
leeway=self._leeway.total_seconds(),
)

video_dict = {camel_to_snake(k): v for k, v in claims["video"].items()}
video_dict = claims.get("video", dict())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default the value here

identity=claims["sub"],
name=claims["name"],
return Claims(
identity=claims.get("sub", ""),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Copy link
Member Author

@theomonnom theomonnom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/

@theomonnom theomonnom merged commit 0c461f3 into main Nov 14, 2023
5 checks passed
@theomonnom theomonnom deleted the theo/example_fix branch November 14, 2023 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants