UNPKG
@m3ntorship/pickly-protector
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
oAuth2 protector for pickly services based on firebase authentication
@m3ntorship/pickly-protector
/
src
/
verifyIdToken.ts
7 lines
(4 loc)
•
165 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
admin
from
'firebase-admin'
;
export
const
verifyIdToken = (
idToken
:
string
):
Promise
<admin.
auth
.
DecodedIdToken
> => admin.
auth
().
verifyIdToken
(idToken);