Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
371 B
Text
13 lines
371 B
Text
export class DefaultIdentityProviderConfig {
|
|
authSchemes = new Map();
|
|
constructor(config) {
|
|
for (const [key, value] of Object.entries(config)) {
|
|
if (value !== undefined) {
|
|
this.authSchemes.set(key, value);
|
|
}
|
|
}
|
|
}
|
|
getIdentityProvider(schemeId) {
|
|
return this.authSchemes.get(schemeId);
|
|
}
|
|
}
|