Skip to content

fix: add authcontext to browser-ext - #2346

Merged
fayi-da merged 2 commits into
mainfrom
alex/browser-ext-authcontext
Aug 24, 2026
Merged

fix: add authcontext to browser-ext#2346
fayi-da merged 2 commits into
mainfrom
alex/browser-ext-authcontext

Conversation

@alexmatson-da

@alexmatson-da alexmatson-da commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Upon logging in, the UI will directly create an AuthContext based on the token received from login. This context can then be used in the store/controller.

Inside the controller, you will need to check the context whenever you want to use it, example:

const context = await AuthService.loadAuthContext()
if (!context) {
    throw new Error(
        'No auth context found. User must be authenticated.'
    )
}

Fixes #2342

Signed-off-by: Alex Matson <alex.matson@digitalasset.com>
@alexmatson-da
alexmatson-da requested a review from fayi-da August 22, 2026 01:08
@alexmatson-da
alexmatson-da requested a review from a team as a code owner August 22, 2026 01:08
Comment thread wallet-gateway/extension/entrypoints/background/dapp/controller.ts Dismissed
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
@fayi-da
fayi-da enabled auto-merge (squash) August 22, 2026 19:52
@fayi-da
fayi-da requested review from a team and mjuchli-da August 22, 2026 19:53
@fayi-da
fayi-da merged commit eea8f3f into main Aug 24, 2026
27 checks passed
@fayi-da
fayi-da deleted the alex/browser-ext-authcontext branch August 24, 2026 08:31
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.

Pass network token into the store

3 participants