Remove logging
This commit is contained in:
parent
b3f36cf9c8
commit
68efff16de
1 changed files with 0 additions and 3 deletions
|
|
@ -30,7 +30,6 @@ app.get("/login", async (req, res) => {
|
|||
}
|
||||
const cbid = uid();
|
||||
const redirect_uri = `${CLIENT_URL}/callback/${cbid}`;
|
||||
console.log("Redirect URI is", redirect_uri)
|
||||
const provider = new URL(req.query.provider);
|
||||
const oidConfig = await oid.dynamicClientRegistration(
|
||||
provider,
|
||||
|
|
@ -69,8 +68,6 @@ app.get("/callback/:cbid", async (req, res) => {
|
|||
const { oidConfig, pkceCodeVerifier, url: redirect_uri } = database[cbid]!;
|
||||
const query = (typeof req.query == "object") ? req.query as Record<string, string> : {};
|
||||
const url = new URL(redirect_uri + `?${new URLSearchParams(query).toString()}`);
|
||||
console.log("URL")
|
||||
console.log(url.toString());
|
||||
let tokens = await oid
|
||||
.authorizationCodeGrant(oidConfig, url, {
|
||||
pkceCodeVerifier,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue