Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3753264
D6128.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6128.diff
View Options
diff --git a/keyserver/src/responders/landing-handler.js b/keyserver/src/responders/landing-handler.js
--- a/keyserver/src/responders/landing-handler.js
+++ b/keyserver/src/responders/landing-handler.js
@@ -194,6 +194,7 @@
url={clientPath}
basename={routerBasename}
siweNonce={siweNonce}
+ siwePrimaryIdentityPublicKey={siwePrimaryIdentityPublicKey}
/>,
);
reactStream.pipe(res, { end: false });
diff --git a/landing/landing-ssr.react.js b/landing/landing-ssr.react.js
--- a/landing/landing-ssr.react.js
+++ b/landing/landing-ssr.react.js
@@ -10,15 +10,17 @@
+url: string,
+basename: string,
+siweNonce: ?string,
+ +siwePrimaryIdentityPublicKey: ?string,
};
function LandingSSR(props: LandingSSRProps): React.Node {
- const { url, basename, siweNonce } = props;
+ const { url, basename, siweNonce, siwePrimaryIdentityPublicKey } = props;
const siweContextValue = React.useMemo(
() => ({
siweNonce,
+ siwePrimaryIdentityPublicKey,
}),
- [siweNonce],
+ [siweNonce, siwePrimaryIdentityPublicKey],
);
const routerContext = React.useMemo(() => ({}), []);
return (
diff --git a/landing/root.js b/landing/root.js
--- a/landing/root.js
+++ b/landing/root.js
@@ -8,11 +8,13 @@
declare var routerBasename: string;
declare var siweNonce: ?string;
+declare var siwePrimaryIdentityPublicKey: ?string;
function RootComponent(): React.Node {
const siweContextValue = React.useMemo(
() => ({
siweNonce,
+ siwePrimaryIdentityPublicKey,
}),
[],
);
diff --git a/landing/siwe-context.js b/landing/siwe-context.js
--- a/landing/siwe-context.js
+++ b/landing/siwe-context.js
@@ -4,10 +4,12 @@
export type SIWEContextType = {
+siweNonce: ?string,
+ +siwePrimaryIdentityPublicKey: ?string,
};
const SIWEContext: React.Context<SIWEContextType> = React.createContext({
siweNonce: null,
+ siwePrimaryIdentityPublicKey: null,
});
export { SIWEContext };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 1:29 AM (20 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2858183
Default Alt Text
D6128.diff (1 KB)
Attached To
Mode
D6128: [landing] Add `siwePrimaryIdentityPublicKey` to `SIWEContext`
Attached
Detach File
Event Timeline
Log In to Comment