简体   繁体   中英

Error in firebase-admin on Angular 2

I need to use firebase-admin to create a token to authenticate in firebase (have another way?). But when I try to use, I receive the error that jsonwebtoken module is not found, then I install this module. After, I this, I receive the error node-purge module not found, then I install this. And the two error is fixed, but appears a third: cannot read property map of null .

What I do? Have another way to make tokens for firebase?

firebase-admin is a SDK supposed to be working server-side. Take a look at the AngularFire2 library to use Firebase client-side

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM