Skip to content

Commit

Permalink
feat(Auth): Google auth. Closes #155
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Mar 26, 2021
1 parent d6c9ba1 commit eb31f48
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 84 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### 🚀 New features

* [#154](https://github.com/antoinezanardi/werewolves-assistant-web/issues/154) - Facebook auth.
* [#155](https://github.com/antoinezanardi/werewolves-assistant-web/issues/155) - Google auth.

### 📦 Packages

Expand All @@ -20,11 +21,11 @@
* `@vue/cli-plugin-vuex` updated to version `4.5.12`.
* `@vue/cli-service` updated to version `4.5.12`.
* `chai` updated to version `4.3.4`.
* `eslint` updated to version `7.22.0`.
* `eslint` updated to version `7.23.0`.
* `eslint-plugin-vue` updated to version `7.8.0`.
* `particles.vue` updated to version `2.7.1`.
* `qs` updated to version `6.10.1`.
* `sweetalert2` updated to version `10.15.6`.
* `sweetalert2` updated to version `10.15.7`.
* `v-tooltip` updated to version `2.1.3`.
* `vue-i18n` updated to version `8.24.2`.

Expand Down
159 changes: 81 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/components/Home/AccountModal/AccountModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,5 @@ export default {
}
.switch-panel-enter, .switch-panel-leave-to {
opacity: 0;
max-height: 240px;
}
</style>
3 changes: 1 addition & 2 deletions src/components/Home/AccountModal/GoogleLoginButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ export default {
methods: {
...mapActions("user", { loginWithGoogle: "loginWithGoogle" }),
async login(data) {
console.log(data);
try {
if (data) {
await this.loginWithGoogle(data.tc.id_token);
// this.$emit("hide-account-modal");
this.$emit("hide-account-modal");
}
} catch (err) {
this.$error.display(err);
Expand Down
Loading

0 comments on commit eb31f48

Please sign in to comment.