[READ-ONLY] Mirror of https://github.com/probablykasper/v4.kasper.space. Personal website v4.kasper.space
personal-website website
0

Configure Feed

Select the types of activity you want to include in your feed.

Fixed babel making github token being revoked

Kasper (Oct 21, 2018, 4:45 PM +0200) 950196d1 8d6d517a

+5 -2
+5 -2
src/js/global.js
··· 135 135 })(); 136 136 137 137 (function GitHub () { 138 - // GitHub API 138 + // this is so babel won't combine the two string into one, and 139 + // make GitHub revoke the token when it detects it in the commit 140 + let token = '510127accaf075e7a33b' 141 + if (true) token += '04e4569c7e2f78c83539' 139 142 fetch('https://api.github.com/graphql', { 140 143 body: JSON.stringify({ 141 144 query: ` ··· 156 159 ` 157 160 }), 158 161 headers: { 159 - Authorization: 'bearer 54269bc9916289286806' + '62193cad6c4203672f66', 162 + Authorization: 'bearer ' + token, 160 163 'Content-Type': 'application/x-www-form-urlencoded' 161 164 }, 162 165 method: 'POST'