repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use same lock values as mobile clients
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
helpers
/
scope.ts
blob
bc65718e5ccae3f0caeb8f3ff888ad061eacb2e8
1
export const hasScope = (scope: string, mask: number | string) => {
2
const scopeInt = BigInt(scope);
3
const maskInt = BigInt(mask);
4
5
return (scopeInt & maskInt) === maskInt;
6
};