Initial MVP of GitHub gist support

This commit is contained in:
Liyas Thomas
2020-12-07 14:14:02 +05:30
parent ebae9880dc
commit 3d10a8f86a
5 changed files with 76 additions and 3 deletions

View File

@@ -109,7 +109,12 @@ export default {
},
async signInWithGithub() {
try {
const { additionalUserInfo } = await fb.signInUserWithGithub()
const { credential, additionalUserInfo } = await fb.signInUserWithGithub()
this.$store.commit("postwoman/setProviderInfo", {
providerId: "github.com",
accessToken: credential.accessToken,
})
if (additionalUserInfo.isNewUser) {
this.$toast.info(`${this.$t("turn_on")} ${this.$t("sync")}`, {