Skip to content

Commit

Permalink
fix: change package import in example
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrzeptowski committed Apr 10, 2024
1 parent c21e309 commit 9adbd8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/oauth/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { config } from "dotenv";
import express from "express";
import { Client, Credentials } from "snoots";
import { Client, Credentials } from "snoots-revived";

const port = 8080;
const redirectUri = `http://127.0.0.1:${port}/auth`;
Expand All @@ -26,7 +26,7 @@ app.get("/login", (_req, res) => {
["identity"],
redirectUri,
"some-state", // This should be RANDOM and validated in /auth.
true
true,
);

res.redirect(uri);
Expand Down Expand Up @@ -56,7 +56,7 @@ app.get("/auth", async (req, res) => {
const client = await Client.fromAuthCode(
{ userAgent, creds },
code,
redirectUri
redirectUri,
);

// Get and display the user's information so we know it worked!
Expand Down
2 changes: 1 addition & 1 deletion examples/oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1",
"snoots": "file:../.."
"snoots-revived": "file:../.."
},
"devDependencies": {
"@types/express": "^4.17.11",
Expand Down

0 comments on commit 9adbd8f

Please sign in to comment.