mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-27 01:46:25 -07:00
[Server] Fix bug
This commit is contained in:
parent
ff75644ca7
commit
24009a44bb
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module.exports = (app: express.Application) => {
|
||||||
callbackUrl: config.url + '/tw/cb'
|
callbackUrl: config.url + '/tw/cb'
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('connect/twitter', async (req, res): Promise<any> => {
|
app.get('/connect/twitter', async (req, res): Promise<any> => {
|
||||||
if (res.locals.user == null) return res.send('plz signin');
|
if (res.locals.user == null) return res.send('plz signin');
|
||||||
const ctx = await twAuth.begin();
|
const ctx = await twAuth.begin();
|
||||||
redis.set(res.locals.user, JSON.stringify(ctx));
|
redis.set(res.locals.user, JSON.stringify(ctx));
|
||||||
|
|
Loading…
Reference in a new issue