Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-slugify-in-tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
halvaradop authored Nov 30, 2024
2 parents a74f86e + 2922e28 commit 72f120f
Show file tree
Hide file tree
Showing 85 changed files with 1,874 additions and 719 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/2_bug_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ body:
- "Kinde"
- "Line"
- "LinkedIn"
- "Loops"
- "Mailchimp"
- "Mail.ru"
- "Mastodon"
Expand Down
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
versioning-strategy: "increase"
allow:
- dependency-name: "oauth4webapi"
- dependency-name: "jose"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
run: cd apps/examples/nextjs-docker && pnpm test:docker
- name: Run E2E tests
continue-on-error: true # TODO: Make this less flakey
if: github.repository == 'nextauthjs/next-auth'
if: ${{ env.PACKAGES_CHANGES == 'true' || github.ref == 'refs/heads/main' }}
timeout-minutes: 15
env:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ docs/.next
docs/manifest.mjs

# Core
packages/core/src/providers/oauth-types.ts
packages/core/src/providers/provider-types.ts
packages/core/lib
packages/core/providers
packages/core/src/lib/pages/styles.ts
Expand Down
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ packages/**/*.js
!packages/*/scripts/*.js

# @auth/core
packages/core/src/providers/oauth-types.ts
packages/core/src/providers/provider-types.ts
packages/core/src/lib/pages/styles.ts

# @auth/sveltekit
Expand All @@ -43,7 +43,7 @@ packages/frameworks-sveltekit/vite.config.{js,ts}.timestamp-*
packages/frameworks-express/providers

# next-auth
packages/next-auth/src/providers/oauth-types.ts
packages/next-auth/src/providers/provider-types.ts
packages/next-auth/css/index.css

# Adapters
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,22 @@ We have an [OpenCollective](https://opencollective.com/nextauth) for companies a
<div>Encore</div>
<sub>💵</sub>
</td>
<td align="center" valign="top">
<a href="https://sent.dm/?ref=auth.js" target="_blank">
<img width="108" src="https://avatars.githubusercontent.com/u/153308555?v=4" alt="Sent.dm Logo" />
</a><br />
<div>Sent.dm</div>
<sub>💵</sub>
</td>
</tr>
<tr>
<td align="center" valign="top">
<a href="https://arcjet.com/?ref=auth.js" target="_blank">
<img width="108" src="https://avatars.githubusercontent.com/u/24397786?s=200&v=4" alt="Arcjet Logo" />
</a><br />
<div>Arcjet</div>
<sub>💵</sub>
</td>
</tr>
<tr>
<td align="center" valign="top">
<a href="https://route4me.com/?ref=auth.js" target="_blank">
<img width="108" src="https://avatars.githubusercontent.com/u/7936820?v=4" alt="Route4Me Logo" />
Expand Down
6 changes: 5 additions & 1 deletion apps/dev/nextjs/app/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export default function Client() {
) : (
<>
<button onClick={() => signIn("github")}>Sign in GitHub</button>
<button onClick={() => signIn("credentials", {})}>
<button
onClick={async () => {
await signIn("webauthn", {})
}}
>
Sign in Credentials
</button>
</>
Expand Down
4 changes: 3 additions & 1 deletion apps/dev/nextjs/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import NextAuth from "next-auth"
import type { NextAuthConfig } from "next-auth"
import Credentials from "next-auth/providers/credentials"
import Keycloak from "next-auth/providers/keycloak"
import GitHub from "next-auth/providers/github"

// import { PrismaClient } from "@prisma/client"
// import { PrismaAdapter } from "@auth/prisma-adapter"
Expand Down Expand Up @@ -66,8 +66,10 @@ export const { handlers, auth, signIn, signOut, unstable_update } = NextAuth({
}
},
}),
GitHub,
Keycloak,
],

callbacks: {
jwt({ token, trigger, session }) {
if (trigger === "update") token.name = session.user.name
Expand Down
18 changes: 0 additions & 18 deletions docs/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,6 @@ export function Footer({ className = "" }) {
Discord Community
</a>
</li>
<li>
<a
className="flex items-center gap-1 text-current"
target="_blank"
rel="noopener noreferrer"
title="vercel.com homepage"
href="https://vercel.com?utm_source=authjs&utm_campaign=oss"
>
<span>Powered by</span>
<svg height={20} viewBox="0 0 283 64" fill="none">
<title>Vercel</title>
<path
fill="currentColor"
d="M141.04 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM248.72 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.45 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM200.24 34c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10zm82.48-29v46h-9V5h9zM36.95 0L73.9 64H0L36.95 0zm92.38 5l-27.71 48L73.91 5H84.3l17.32 30 17.32-30h10.39zm58.91 12v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10V51h-9V17h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"
/>
</svg>
</a>
</li>
</ul>
</div>
<div className="flex flex-col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function SetupCode({ providerId, providerName, highlight }: Props) {
data-copy=""
data-language="tsx"
icon={TSIcon}
className="px-4"
dangerouslySetInnerHTML={{
__html: highlight(`
import NextAuth from "next-auth"
Expand All @@ -40,6 +41,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand All @@ -57,6 +59,7 @@ export const { GET, POST } = handlers
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand All @@ -78,6 +81,7 @@ export const { onRequest, useSession, useSignIn, useSignOut } = QwikAuth$({
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand All @@ -98,6 +102,7 @@ export const { handle, signIn } = SvelteKitAuth({
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`export { handle } from "./auth"`),
Expand All @@ -113,6 +118,7 @@ export const { handle, signIn } = SvelteKitAuth({
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand All @@ -134,6 +140,7 @@ export const load: LayoutServerLoad = async (event) => {
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function SignInCode({ providerId, providerName, highlight }: Props) {
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand All @@ -43,10 +44,12 @@ export default function SignIn() {
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
"use client"
import { signIn } from "next-auth/react"
export default function SignIn() {
Expand All @@ -64,6 +67,7 @@ export default function SignIn() {
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
dangerouslySetInnerHTML={{
__html: highlight(`
Expand Down Expand Up @@ -107,6 +111,7 @@ export default component$(() => {
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
data-filename="src/routes/+page.svelte"
dangerouslySetInnerHTML={{
Expand All @@ -131,6 +136,7 @@ export default component$(() => {
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
data-filename="src/routes/signin/+page.server.ts"
dangerouslySetInnerHTML={{
Expand All @@ -148,6 +154,7 @@ export const actions: Actions = { default: signIn }
data-theme="default"
data-copy=""
data-language="tsx"
className="px-4"
icon={TSIcon}
data-filename="src/routes/+page.svelte"
dangerouslySetInnerHTML={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
interface Props {
children: React.ReactNode
count: number
}

export function StepTitle({ children }: Props) {
export function StepTitle({ children, count }: Props) {
return (
<h3
className={`mt-8 text-2xl font-semibold tracking-tight text-slate-900 before:!-mt-[1px] before:flex before:items-center before:justify-center dark:text-slate-100`}
className={`relative mt-8 text-2xl font-semibold tracking-tight text-slate-900 dark:text-slate-100`}
>
<span
className="absolute rounded-full"
style={{
left: "-2.65rem",
color: "#a3a3a3",
backgroundColor: "#f3f4f6",
top: "52%",
transform: "translateY(-50%)",
fontSize: "1rem",
width: "33px",
height: "33px",
textAlign: "center",
}}
>
{count}
</span>
{children}
</h3>
)
Expand Down
Loading

0 comments on commit 72f120f

Please sign in to comment.