Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

Proxy Server for Github Oauth

The mechanism is inspired from https://indielogin.com/

1
2
3
4
5
6
7
8
9
import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo";
import { Hono } from "npm:hono";
const clientID = Deno.env.get("GITHUB_CLIENT_ID");
const clientSecret = Deno.env.get("GITHUB_CLIENT_SECRET");
const app = new Hono();
export default app.fetch;
April 14, 2024