MCPcopy Create free account
hub / github.com/firebase/quickstart-js / getHashValue

Function getHashValue

auth/customauth.ts:89–92  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

87signInButton.addEventListener('click', toggleSignIn, false);
88
89function getHashValue(key: string): string | null {
90 const matches = location.hash.match(new RegExp(key + '=([^&]*)'));
91 return matches ? matches[1] : null;
92}
93
94// If a token has been passed in the hash fragment we display it in the UI and start the sign in process.
95tokenTextArea.value = getHashValue('token') || '';

Callers 1

customauth.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected