source:
src/lib/firebase-admin.ts@
5d6f37a
Last change on this file since 5d6f37a was 5d6f37a, checked in by , 7 weeks ago | |
---|---|
|
|
File size: 230 bytes |
Line | |
---|---|
1 | import * as admin from 'firebase-admin'; |
2 | import { applicationDefault } from 'firebase-admin/app'; |
3 | |
4 | if (!admin.apps.length) { |
5 | admin.initializeApp({ |
6 | credential: applicationDefault(), |
7 | }); |
8 | } |
9 | |
10 | export const auth = admin.auth(); |
Note:
See TracBrowser
for help on using the repository browser.