Page MenuHomePhabricator

[landing] Rename `SIWENonceContext` to `SIWEContext`
ClosedPublic

Authored by atul on Dec 31 2022, 2:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 23, 6:21 AM
Unknown Object (File)
Sun, Jun 23, 6:21 AM
Unknown Object (File)
Sun, Jun 23, 6:21 AM
Unknown Object (File)
Wed, Jun 19, 5:59 PM
Unknown Object (File)
Thu, Jun 13, 10:40 AM
Unknown Object (File)
Wed, May 29, 4:26 AM
Unknown Object (File)
May 24 2024, 11:57 AM
Unknown Object (File)
May 24 2024, 8:32 AM
Subscribers
None

Details

Summary

This React.Context was initially just to make the siweNonce included in the request header available in the siwe.react.js component without a bunch of prop drilling.

However, going forward we're also going to need to make siwePrimaryIdentityPublicKey accessible to the siwe.react.js component. Instead of introducing yet another React.Context it makes sense to turn SIWENonceContext into a more general SIWEContext that can handle both the nonce and public key.

This diff is solely about renaming the context in place to reduce clutter in subsequent diffs.

Test Plan

SIWE flow continue to work as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable