Skip to content
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: nextauth implementation #108

Merged
merged 7 commits into from
Aug 12, 2024
Merged

feat: nextauth implementation #108

merged 7 commits into from
Aug 12, 2024

Conversation

Plow74
Copy link
Contributor

@Plow74 Plow74 commented Aug 6, 2024

No description provided.

@@ -8,9 +8,8 @@ import SiteAppBar from '@/components/shared/nav/app-bar/SiteAppBar'
import Nav from '@/components/shared/nav/nav/Nav'

export default function CombinedNavAndAppBar() {
const [auth, setAuth] = React.useState(false)
const handleAuthChange = (event: React.ChangeEvent<HTMLInputElement>) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the function handleAuthChange, or passing it around, serves any purpose anymore. Since you have reworked what represents that, we should probably pass w/e that is instead. But, I get why you left it in place, so we can update if we have time/if we need it. And, otherwise, remove. So, this is really just a note for anyone curious. Not a reason to hold up a PR.


// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
export default function Auth(props: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no props referenced so do we need the param and the lint exception?

@@ -91,8 +90,7 @@ export default function SiteAppBar({ open, handleDrawerOpen, auth }: SiteAppBarP
</a>
</Grow>
</div>
{/* Login */}
<Auth auth={auth} />
<Auth />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just confirming no props are sent

CredentialsProvider({
name: 'ETT Login',
credentials: {
username: { label: 'Username', type: 'text', placeholder: 'jsmith' },
Copy link
Contributor

@drbgfc drbgfc Aug 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we provide a placeholder suggestion for a value for a username?

@@ -0,0 +1,3 @@
'use client'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. We should use this technique more often.

Copy link
Contributor

@drbgfc drbgfc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hard work! There is nothing in my comments that warrants holding up this PR that's for sure. @Plow74 when you get a chance, please review, and if you feel there is any merit (and there very well may not be!) include alongside a relevant update for a newer ticket.

@drbgfc drbgfc merged commit e8e326d into dev Aug 12, 2024
3 checks passed
@Plow74 Plow74 deleted the brian-dev-login branch August 13, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants