Skip to content

Commit

Permalink
Feature/NS-22-add-next-auth (#58)
Browse files Browse the repository at this point in the history
* feat: add next-auth

* docs: update env.example

* test: fix tests

* fix: fix next-auth error
  • Loading branch information
Skolaczk authored Jan 31, 2024
1 parent 32a68fe commit 426f08a
Show file tree
Hide file tree
Showing 12 changed files with 1,092 additions and 10 deletions.
12 changes: 10 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Duplicate this to .env.local

NEXT_PUBLIC_SITE_URL='https://example.com'
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
NEXT_PUBLIC_SITE_URL='your site url'

NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID='your google site verification ID'

NEXT_PUBLIC_GITHUB_ID='your github client ID'
NEXT_PUBLIC_GITHUB_SECRET='your github secret ID'

NEXTAUTH_SECRET='your next-auth secret'
## Only required for localhost
NEXTAUTH_URL='http://localhost:3000'
11 changes: 10 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
},
],
},
};

module.exports = nextConfig;
Loading

0 comments on commit 426f08a

Please sign in to comment.