MCPcopy Create free account
hub / github.com/chiihero/Microsoft-Rewards-Script / findAccountByEmail

Function findAccountByEmail

scripts/utils.js:129–135  ·  view source on GitHub ↗
(accounts, email)

Source from the content-addressed store, hash-verified

127}
128
129export function findAccountByEmail(accounts, email) {
130 if (!email || typeof email !== 'string') return null
131 return (
132 accounts.find(a => a?.email && typeof a.email === 'string' && a.email.toLowerCase() === email.toLowerCase()) ||
133 null
134 )
135}
136
137export function getRuntimeBase(projectRoot, isDev = false) {
138 return path.join(projectRoot, isDev ? 'src' : 'dist')

Callers 1

browserSession.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected