Repository navigation
Improve the B2B quickstarts - #29
Merged
Merged
Conversation
AnuradhaSK
force-pushed
the
improve-samples
branch
from
November 14, 2026 06:55
926c873 to
c5e6a2a
Compare
AnuradhaSK
force-pushed
the
improve-samples
branch
2 times, most recently
from
November 14, 2026 13:06
bee8bce to
931b48a
Compare
5 of 12 tasks
AnuradhaSK
marked this pull request as ready for review
November 14, 2026 13:09
Signed-off-by: AnuradhaSK <anuradha199528@gmail.com>
AnuradhaSK
force-pushed
the
improve-samples
branch
from
November 14, 2026 13:39
931b48a to
5bbc790
Compare
5 of 11 tasks
brionmario
approved these changes
Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Improves the B2B quickstarts (
quickstarts/react-b2b,quickstarts/nextjs-b2b), and removes the client secret values from them and from Wayfinder Enterprise (b2b/wayfinder-enterprise).Approach
Default organization unit as the business unit
thunderid-config/thunderid-config.yaml, into the Default organization unit.organization-unit.yamland the root organization unit it created are gone.ouHandle: default, and the flows'parentOuIdpoints at the Default organization unit, so each company that signs up becomes its child.Next.js B2B Admin/Next.js B2B MemberandReact B2B Admin/React B2B Member. With both quickstarts in one unit, same-named roles fail withROL-1004.Switching without a redirect
@thunderid/nextjs1.20.0.device_ssois added toNEXT_PUBLIC_THUNDERID_SCOPES, and the application allowsurn:ietf:params:oauth:grant-type:token-exchange, so the server switches companies with the device secret.@thunderid/react1.22.1, which redeems a switch callback while signed in, so the sample's workaround inApp.jsxis removed.device_ssois in the provider's scopes. The app runs onhttp://localhost:5173, without@vitejs/plugin-basic-ssl.No secret values in the samples
NEXTJS_B2B_CLIENT_SECRET,WAYFINDER_ENTERPRISE_CLIENT_SECRETandWAYFINDER_ENTERPRISE_BACKEND_CLIENT_SECRETship empty inthunderid.env. Comments say how to generate a value and which app variable takes the same one.THUNDERID_CLIENT_SECRET,WAYFINDER_BACKEND_CLIENT_SECRETandTHUNDERID_SECRETship empty in.env.example.READMEs
Related Issues
Related PRs
Checklist
main), imported both quickstarts into the Default organization unit (all resources imported, including all four roles) and ran both apps.northstar(account inside the company) andinitech(shared account). Both landed asNext.js B2B Adminwithorg.globex, which landed asReact B2B Admin.northstarand switched toinitechon the same page, with onePOST /ou/{ouId}/oauth2/tokenand no redirect..env. With the shipped empty value, the import is blocked until the secret is entered.breaking changelabel added.Security checks
🤖 Generated with Claude Code