kopterio / vue-auth-cognito

A Vue.js Vuex module for authentication using Amazon AWS Cognito
114 stars 27 forks source link

Add cognitoAuthenticated getter to determine whether session is active #51

Open joefresco opened 7 years ago

joefresco commented 7 years ago

Currently, it is impossible to determine if a session has timed out. This adds a getter that validates the session expiration against the current time. amazon-cognito-identity-js uses the cognitoSession class to do this, which would be ideal, but I think this approach works.

ffxsam commented 6 years ago

@kesor Just curious, is this repo still maintained? I'd like to contribute, but only if PRs will actually get reviewed and merged.

kesor commented 6 years ago

@ffxsam yes, but at the moment I don't have enough time to add unit tests to PRs. and I don't want to merge commits without unit tests.