Repository navigation
chore: map auth build envs to server client IDs in vue example - #413
Merged
Merged
Conversation
chaitanyapotti
previously approved these changes
Nov 23, 2026
chaitanyapotti
approved these changes
Nov 23, 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.
Jira Link
N/A
Description
Updates the Vue example (
examples/vue-example/src/App.vue) so the client ID is selected per network and per server environment. The auth build env selected in the UI maps to a server environment.SERVER_ENVwith the two server environments:productionanddevelopment.AUTH_TO_SERVER_ENV, which maps each authBUILD_ENVto a server env:production,staging→ serverproductiondevelopment,testing→ serverdevelopmentOPENLOGIN_PROJECT_IDSis nowRecord<WEB3AUTH_NETWORK_TYPE, Record<SERVER_ENV_TYPE, string>>.sapphire_devnet+ serverdevelopment, which uses a dedicated client ID.openloginInstanceandsetProviderlook up the client ID with the selected network and the server env mapped from the selected auth build env.How has this been tested?
npm run lint(no new warnings)npm run typechecknpm run buildnpm test(all tests pass)vue-tsc --noEmitinexamples/vue-example(no errors)Screenshots (if appropriate)
N/A
Types of changes
Checklist
Note
Low Risk
Example-only configuration changes with no impact on the auth library or production runtime.
Overview
The Vue example now picks OpenLogin client IDs from both the selected Web3Auth network and a server environment derived from the UI build env.
productionandstagingbuilds use production server client IDs;developmentandtestinguse development server IDs. Client ID tables are nested per network × server env (notably Sapphire devnet uses a different development ID).openloginInstanceandsetProviderresolve the ID viaAUTH_TO_SERVER_ENV[selectedBuildEnv]. A patch changeset documents the example behavior.Reviewed by Cursor Bugbot for commit 0b5755f. Bugbot is set up for automated code reviews on this repo. Configure here.