Skip to content
This repository was archived by the owner on Nov 21, 2022. It is now read-only.

Commit 2e0621c

Browse files
committed
fix(firebase-auth): fix readme references
1 parent a74f507 commit 2e0621c

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed
Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
1-
# vuex-cognito-module
1+
# vuex-firebase-auth-module
22

3-
Vuex module to interface with AWS Cognito
3+
Vuex module to interface with Google Firebase
44

55
Docs Link: Coming Soon!
66

77
Install:
88
```bash
9-
yarn add @vuetify/vuex-cognito-module
9+
yarn add @vuetify/vuex-firebase-auth-module
1010
```
1111

1212
Import into your project's entry point (main.js in most Vue projects)
1313
```js
14-
import attachCognitoModule from '@vuetify/vuex-cognito-module';
14+
import attachFirebaseAuthModule from '@vuetify/vuex-firebase-auth-module';
1515
```
1616

17-
Attach cognito module to the store
17+
Attach auth module to the store
1818
```js
19+
import firebase from 'firebase/app'
20+
import 'firebase/auth'
21+
1922
import store from './store';
20-
attachCognitoModule(store, {
21-
userPoolId: 'your-data-here',
22-
identityPoolId: 'your-data-here',
23-
userPoolWebClientId: 'your-data-here',
24-
region: 'your-data-here',
25-
}, 'cognito')
23+
24+
const config = {
25+
apiKey: 'your-api-key',
26+
authDomain: 'your-auth-domain',
27+
databaseURL: 'your-database-url',
28+
projectId: 'your-project-id',
29+
storageBucket: 'your-storage-bucket',
30+
messagingSenderId: 'your-sender-id',
31+
}
32+
33+
const firebaseApp = firebase.initializeApp(config)
34+
const auth = firebaseApp.auth()
35+
36+
attachFirebaseAuthModule(store, auth, 'auth')
2637
```

0 commit comments

Comments
 (0)