vuex-cognito-module

notes

  • this package was originally boosted from here.

changes

  • fetchCurrentAuthenticatedUser

todo

  • ditch vuepress or upgrade dependcy security vulns
  • typescript support

original docs

Vuex module to interface with AWS Cognito

Docs Link: https://cognito.vuetifyjs.com/

Install:

yarn add @vuetify/vuex-cognito-module

Import into your project's entry point (main.js in most Vue projects)

import attachCognitoModule from '@vuetify/vuex-cognito-module';

Attach cognito module to the store

import store from './store';
attachCognitoModule(store, {
  userPoolId: 'your-data-here',
  identityPoolId: 'your-data-here',
  userPoolWebClientId: 'your-data-here',
  region: 'your-data-here',
}, 'cognito')