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

Sets cookie that nodebb should recognize #2186

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Sets cookie that nodebb should recognize #2186

merged 2 commits into from
Nov 1, 2024

Conversation

gunnarvelle
Copy link
Member

Dette fungerte irriterende bra sammen med https://github.com/julianlam/nodebb-plugin-session-sharing

Må berre sette prop-navn i settings på session-sharing plugin
image

@gunnarvelle gunnarvelle requested review from a team November 1, 2024 08:41
const decoded = token.id_token ? jwt.decode(token.id_token, {}) : undefined;
const nodebbCookie = {
id: decoded?.sub,
username: decoded?.["https://n.feide.no/claims/eduPersonPrincipalName"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Dra url ut i en const?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sikkert.

@gunnarvelle gunnarvelle merged commit 7388b7b into master Nov 1, 2024
6 checks passed
@gunnarvelle gunnarvelle deleted the nodebb-cookie branch November 1, 2024 12:01
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