-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add new auth with magic.link #61
Conversation
Deploying with Cloudflare Pages
|
Codecov Report
@@ Coverage Diff @@
## main #61 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 244 244
=========================================
Hits 244 244 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE! Some minor issues, but I think we can get this merged ASAP!
README.md
Outdated
wrangler secret put AUTH0_DOMAIN --env production # Get from auth0 account | ||
wrangler secret put AUTH0_CLIENT_ID --env production # Get from auth0 account | ||
wrangler secret put AUTH0_CLIENT_SECRET --env production # Get from auth0 account | ||
wrangler secret put _MAGIC_SECRET_KEY --env production # Get from auth0 account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this secret prefixed with underscore?
display: block; | ||
width: 100%; | ||
overflow-x: auto; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can almost all be tachyons classes, but can be fixed later.
website/components/navbar.js
Outdated
return ( | ||
<nav className={`dn dn-m db-ns bg-${bgColor}`}> | ||
<nav className={` bg-${bgColor}`}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those classes are there so the navbar disappears on mobile as it did not render well. We need a hamburger or something really. Could you open an issue to get it fixed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i will, i have tweak the navbar and its good enough for now in mobile
eab0304
to
b7f9106
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some final comments, nothing particularly blocking so I've approved, my main concern is NEXT_PUBLIC_API
and NEXT_PUBLIC_MAGIC
which are undocumented and I can't see where they're set.
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
# SRC_PACKAGE_DIR: client | ||
# DEPLOY_DIR: client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create an issue to re-instate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -44,7 +44,7 @@ class NFTStorage { | |||
* | |||
* @param {{token: string, endpoint?:URL}} options | |||
*/ | |||
constructor({ token, endpoint = new URL('https://nft.storage') }) { | |||
constructor({ token, endpoint = new URL('https://api.nft.storage') }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already done for production
@@ -0,0 +1,98 @@ | |||
import { getMagic } from './magic' | |||
|
|||
export const API = process.env.NEXT_PUBLIC_API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this value documented/set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added docs in the readme
if (magic) { | ||
return magic | ||
} | ||
magic = new Magic(process.env.NEXT_PUBLIC_MAGIC, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this value documented/set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added docs in the readme
No description provided.