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

feat: anonymous tokens #553

Merged
merged 2 commits into from
Oct 11, 2024
Merged

feat: anonymous tokens #553

merged 2 commits into from
Oct 11, 2024

Conversation

alexey-yarmosh
Copy link
Member

Part of #547

@MartinKolarik MartinKolarik merged commit 1b126f5 into master Oct 11, 2024
5 checks passed
MartinKolarik pushed a commit that referenced this pull request Oct 11, 2024
@MartinKolarik MartinKolarik deleted the client-credentials branch October 11, 2024 11:38
Comment on lines -30 to +33
if (ctx.state.user?.id) {
if (ctx.state.user) {
return {
type: 'user',
id: ctx.state.user.id,
id: ctx.state.user.id ?? ctx.state.user.hashedToken ?? '',
Copy link
Member

Choose a reason for hiding this comment

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

Actually, this is wrong. The anonymous tokens should go to anonymousRateLimiter, not to authenticatedRateLimiter. @alexey-yarmosh please update in another PR.

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