File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,17 @@ export default {
47
47
async loadData () {
48
48
this .loading .loadData = true
49
49
try {
50
- this .releases = await executeGiraffeql (this , {
51
- getRepositoryReleases: {
52
- __args: {
53
- first: 5 ,
50
+ this .releases = await executeGiraffeql (
51
+ this ,
52
+ {
53
+ getRepositoryReleases: {
54
+ __args: {
55
+ first: 5 ,
56
+ },
54
57
},
55
58
},
56
- })
59
+ true
60
+ )
57
61
} catch (err) {
58
62
// do nothing
59
63
}
Original file line number Diff line number Diff line change @@ -257,9 +257,9 @@ export default {
257
257
258
258
logout () {
259
259
try {
260
- this .$router .push (' /' )
261
-
262
260
firebase .auth ().signOut ()
261
+
262
+ this .$router .push (' /' )
263
263
} catch (err) {
264
264
handleError (this , err)
265
265
}
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ const prodResource = axios.create({
9
9
10
10
export async function executeGiraffeql < Key extends keyof Root > (
11
11
_that ,
12
- query : GetQuery < Key >
12
+ query : GetQuery < Key > ,
13
+ omitIdToken = false
13
14
) : Promise < GetResponse < Key > > {
14
15
// fetches the idToken
15
16
const currentUser = firebase . auth ( ) . currentUser
16
- const idToken = currentUser ? await currentUser . getIdToken ( ) : null
17
+ const idToken =
18
+ currentUser && ! omitIdToken ? await currentUser . getIdToken ( ) : null
17
19
18
20
// if logged in and no idToken, logout user
19
21
/*
You can’t perform that action at this time.
0 commit comments