Skip to content

Commit

Permalink
refactor: renamed package from next-static-site-auth to next-auth-sta…
Browse files Browse the repository at this point in the history
…tic-site
  • Loading branch information
Xairoo committed Dec 11, 2022
1 parent 14151c4 commit 1c0b181
Show file tree
Hide file tree
Showing 33 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion README.md
3 changes: 1 addition & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/Xairoo/next-static-site-auth.git"
"url": "git://github.com/Xairoo/next-auth-static-site.git"
},
"author": {
"name": "Marcel Zurreck",
"email": "marcel.zurreck@gmail.com",
"url": "https://marcel.zurreck.com"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion apps/web-i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
### Patch Changes

- Updated dependencies [f77ad09]
- next-static-site-auth@0.10.0
- next-auth-static-site@0.10.0
2 changes: 1 addition & 1 deletion apps/web-i18n/components/header/authInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from "../link";
import { useSession, useLogout, loginUrl } from "next-static-site-auth";
import { useSession, useLogout, loginUrl } from "next-auth-static-site";
import { useTranslation } from "next-i18next-static-site";
import style from "./authInfo.module.css";

Expand Down
2 changes: 1 addition & 1 deletion apps/web-i18n/components/protected/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import Link from "../Link";
import Link from "next/link";
import styles from "./index.module.css";
import { loginUrl } from "next-static-site-auth";
import { loginUrl } from "next-auth-static-site";
import { useTranslation, Trans } from "next-i18next-static-site";

export default function Protected() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web-i18n/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const withTM = require("next-transpile-modules")(["next-static-site-auth"]);
const withTM = require("next-transpile-modules")(["next-auth-static-site"]);

module.exports = withTM({
reactStrictMode: true,
Expand Down
5 changes: 2 additions & 3 deletions apps/web-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/Xairoo/next-static-site-auth.git"
"url": "git://github.com/Xairoo/next-auth-static-site.git"
},
"author": {
"name": "Marcel Zurreck",
"email": "marcel.zurreck@gmail.com",
"url": "https://marcel.zurreck.com"
},
"keywords": [
Expand All @@ -28,7 +27,7 @@
"eslint-config-next": "^13.0.6",
"next": "^13.0.6",
"next-i18next-static-site": "^0.3.1",
"next-static-site-auth": "*",
"next-auth-static-site": "*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"swr": "^1.3.0"
Expand Down
4 changes: 2 additions & 2 deletions apps/web-i18n/pages/[lang]/dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useSession } from "next-static-site-auth";
import { useSession } from "next-auth-static-site";
import useSWR from "swr";
import fetcher from "../../utils/fetcher";
import Protected from "../../components/protected";
import { Trans, useTranslation } from "next-i18next-static-site";

export default function Dashboard() {
const { status, data: session, token } = useSession({ redirect: true });
const { status, data: session, token } = useSession();
const { t } = useTranslation();

// Fetch some external data if authenticated
Expand Down
2 changes: 1 addition & 1 deletion apps/web-i18n/pages/[lang]/login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { useRouter } from "next/router";
import { useLogin } from "next-static-site-auth";
import { useLogin } from "next-auth-static-site";
import { useTranslation } from "next-i18next-static-site";
import styles from "./login.module.css";

Expand Down
2 changes: 1 addition & 1 deletion apps/web-i18n/pages/[lang]/logout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from "react";
import { useLogout } from "next-static-site-auth";
import { useLogout } from "next-auth-static-site";
import { useTranslation } from "next-i18next-static-site";

export default function Logout() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web-i18n/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SessionProvider } from "next-static-site-auth";
import { SessionProvider } from "next-auth-static-site";
import {
I18nProvider,
languages,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
### Patch Changes

- Updated dependencies [f77ad09]
- next-static-site-auth@0.10.0
- next-auth-static-site@0.10.0
2 changes: 1 addition & 1 deletion apps/web/components/header/authInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from "next/link";
import { useSession, useLogout, loginUrl } from "next-static-site-auth";
import { useSession, useLogout, loginUrl } from "next-auth-static-site";
import style from "./authInfo.module.css";

export default function AuthInfo() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/protected/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from "next/link";
import styles from "./index.module.css";
import { loginUrl } from "next-static-site-auth";
import { loginUrl } from "next-auth-static-site";

export default function Protected() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const withTM = require("next-transpile-modules")(["next-static-site-auth"]);
const withTM = require("next-transpile-modules")(["next-auth-static-site"]);

module.exports = withTM({
reactStrictMode: true,
Expand Down
5 changes: 2 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/Xairoo/next-static-site-auth.git"
"url": "git://github.com/Xairoo/next-auth-static-site.git"
},
"author": {
"name": "Marcel Zurreck",
"email": "marcel.zurreck@gmail.com",
"url": "https://marcel.zurreck.com"
},
"keywords": [
Expand All @@ -25,7 +24,7 @@
"lint": "next lint"
},
"dependencies": {
"next-static-site-auth": "*",
"next-auth-static-site": "*",
"swr": "^1.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SessionProvider } from "next-static-site-auth";
import { SessionProvider } from "next-auth-static-site";
import Header from "../components/header";
import "./styles.css";

Expand Down
4 changes: 2 additions & 2 deletions apps/web/pages/dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useSession } from "next-static-site-auth";
import { useSession } from "next-auth-static-site";
import useSWR from "swr";
import fetcher from "../utils/fetcher";
import Protected from "../components/protected";

export default function Dashboard() {
const { status, data: session, token } = useSession({ redirect: true });
const { status, data: session, token } = useSession();

// Fetch some external data if authenticated
const { data, error } = useSWR(
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { useRouter } from "next/router";
import { useLogin } from "next-static-site-auth";
import { useLogin } from "next-auth-static-site";
import styles from "./login.module.css";

export default function Login() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/logout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from "react";
import { useLogout } from "next-static-site-auth";
import { useLogout } from "next-auth-static-site";

export default function Logout() {
// const router = useRouter();
Expand Down
58 changes: 31 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next-static-site-auth",
"name": "next-auth-static-site",
"version": "0.9.0",
"private": true,
"workspaces": [
Expand All @@ -24,6 +24,6 @@
},
"packageManager": "npm@8.6.0",
"dependencies": {
"next-static-site-auth": "^0.9.0"
"next-auth-static-site": "^0.9.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# next-static-site-auth
# next-auth-static-site

## 0.10.0

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1c0b181

Please sign in to comment.