-
Notifications
You must be signed in to change notification settings - Fork 4k
feat(root): create keyless environment #8276
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
Conversation
…g for keyless authentication
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@novu/js
@novu/nextjs
novu
@novu/react
@novu/react-native
@novu/providers
@novu/shared
commit: |
…hance rate limiting logic
…tion functionality in footer
…keyless mode in footer
…ntegrate with NotificationListSkeleton
…keyless environments
…ssion retention logic
apps/api/src/app/auth/services/passport/subscriber-jwt.strategy.ts
Outdated
Show resolved
Hide resolved
applicationIdentifier: body.applicationIdentifier, | ||
subscriberHash: body.subscriberHash, | ||
origin, | ||
}) | ||
); | ||
} | ||
|
||
private buildSubscriber(body: SubscriberSessionRequestDto): SubscriberDto { | ||
if (!body.applicationIdentifier || body.applicationIdentifier.startsWith('pk_keyless_')) { | ||
return { subscriberId: 'keyless-subscriber-id' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder, why not let the Inbox generate some random one and persist it? So we don't need to modify this API part of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. I was not sure who should be responsible for the subscriber generation. to me, it felt like we would want as little logic in the Inbox as possible, so I moved this logic to the API.
let me know what you think about it.
… HttpClient defaults, and simplify subscriber logic
…date StandardBaseProps structure
…remove unused decorators, and update avatar URLs
…d streamline subscriber handling
…bscriber logic, and improve keyless identifier management
… helper function for test environment
…nto create-keyless-environment
What changed? Why was the change needed?
EE-PR
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer