Skip to content

Add oidc support#374

Draft
luismeyer wants to merge 7 commits intomainfrom
oidc
Draft

Add oidc support#374
luismeyer wants to merge 7 commits intomainfrom
oidc

Conversation

@luismeyer
Copy link
Copy Markdown
Member

@luismeyer luismeyer commented May 4, 2026

No description provided.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flags-playground Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
flags-sdk-dev Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
flags-sdk-next-15 Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
flags-sdk-next-16 Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
flags-sdk-snippets Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
flags-sdk-sveltekit-snippets Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
shirt-shop Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm
shirt-shop-api Ready Ready Preview, Comment, Open in v0 May 6, 2026 2:54pm

@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 4, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​react@​19.3.0-canary-561ed529-20260423 ⏵ 19.3.0-canary-f4e0d4ed-202604291001008497100
Addednpm/​@​vercel/​oidc@​3.4.01001008496100

View full report

const flagsClients = new Map<string | undefined, FlagsClient>();

function getOrCreateClient(sdkKey: string): FlagsClient {
function getOrCreateClient(sdkKey?: string): FlagsClient {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's non-obvious that this will now also work for undefined (the OIDC use case).

Suggested change
function getOrCreateClient(sdkKey?: string): FlagsClient {
/**
* Ensures we only ever create a single client per SDK Key
*
* When undefined is passed, due to OIDC being used, then we return a single client too.
**/
function getOrCreateClient(sdkKey?: string): FlagsClient {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

createVercelAdapter arg needs to be optional, such that it can default to the oidc one

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