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

Fix nil ptr panic in auth.go #142

Merged
merged 2 commits into from
Jan 14, 2023
Merged

Fix nil ptr panic in auth.go #142

merged 2 commits into from
Jan 14, 2023

Conversation

Zhomart
Copy link
Contributor

@Zhomart Zhomart commented Jan 14, 2023

It happens when err=nil and claims.User=nil in Handlers() func.

https://github.com/go-pkgz/auth/blob/master/auth.go#L184

It happens when `err=nil` and `claims.User=nil` in Handlers() func.
@Zhomart Zhomart requested a review from umputun as a code owner January 14, 2023 03:43
auth.go Outdated Show resolved Hide resolved
@umputun umputun merged commit c3360c6 into go-pkgz:master Jan 14, 2023
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.

2 participants