Skip to content

Instantly share code, notes, and snippets.

View melodyclue's full-sized avatar
🏠
Working from home

melodyclue melodyclue

🏠
Working from home
View GitHub Profile
@melodyclue
melodyclue / chatwork.ts
Created November 2, 2023 07:54
Chatwork OAuth
import {
OAuth2ProviderAuthWithPKCE,
createOAuth2AuthorizationUrlWithPKCE,
validateOAuth2AuthorizationCode
} from "../core/oauth2.js";
import { ProviderUserAuth } from "../core/provider.js";
import { handleRequest, authorizationHeader } from "../utils/request.js";
import type { Auth } from "lucia";