Page MenuHomePhabricator

D6128.diff
No OneTemporary

D6128.diff

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

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)

Event Timeline