fix(server): cookieが取得されないのを修正
This commit is contained in:
parent
3b7c943440
commit
9d14476a6a
3 changed files with 5 additions and 5 deletions
|
|
@ -138,7 +138,7 @@ export class GithubServerService {
|
|||
const oauth2 = await getOath2();
|
||||
|
||||
if (!userToken) {
|
||||
const sessid = request.cookies.get('signin_with_github_sid');
|
||||
const sessid = request.cookies['signin_with_github_sid'];
|
||||
|
||||
if (!sessid) {
|
||||
throw new FastifyReplyError(400, 'invalid session');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue