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: adding dart_frog_auth package. #690

Merged
merged 13 commits into from Jun 20, 2023
Merged

feat: adding dart_frog_auth package. #690

merged 13 commits into from Jun 20, 2023

Conversation

erickzanardo
Copy link
Contributor

Status

N DEVELOPMENT

Description

Adds a dart_frog_auth package in order to implement some basic auth methods.

Opening as draft to gather initial feedback

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

packages/dart_frog_auth/README.md Show resolved Hide resolved
dart_frog_auth_example/pubspec.yaml Outdated Show resolved Hide resolved
.github/workflows/dart_frog_auth.yaml Show resolved Hide resolved
dart_frog_auth_example/README.md Outdated Show resolved Hide resolved
dart_frog_auth_example/lib/user.dart Outdated Show resolved Hide resolved
dart_frog_auth_example/lib/user.dart Outdated Show resolved Hide resolved
dart_frog_auth_example/pubspec.yaml Outdated Show resolved Hide resolved
dart_frog_auth_example/pubspec.yaml Outdated Show resolved Hide resolved
packages/dart_frog_auth/lib/src/dart_frog_auth.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/lib/src/dart_frog_auth.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/lib/src/dart_frog_auth.dart Outdated Show resolved Hide resolved
@erickzanardo erickzanardo marked this pull request as ready for review June 19, 2023 14:21
.use(
bearerTokenAuthentication<User>(
userFromToken: userRepository.fetchFromAccessToken,
).build(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing update?

Copy link
Contributor

@alestiago alestiago left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

I very much prefer the new functional approach over the object oriented one, it fits more with the framework.

The example in the README is great, loved it! I think we should (in the future) consider making a tutorial in the docs and pointing to it instead of including it within the README.

Thank you for the contribution 💙

packages/dart_frog_auth/README.md Outdated Show resolved Hide resolved
packages/dart_frog_auth/README.md Outdated Show resolved Hide resolved
packages/dart_frog_auth/README.md Outdated Show resolved Hide resolved
packages/dart_frog_auth/README.md Outdated Show resolved Hide resolved
packages/dart_frog_auth/README.md Outdated Show resolved Hide resolved
packages/dart_frog_auth/test/src/dart_frog_auth_test.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/test/src/dart_frog_auth_test.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/test/src/dart_frog_auth_test.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/test/src/dart_frog_auth_test.dart Outdated Show resolved Hide resolved
@erickzanardo erickzanardo merged commit 764af9c into main Jun 20, 2023
5 checks passed
@erickzanardo erickzanardo deleted the feat/dart_frog_auth branch June 20, 2023 13:07
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.

None yet

3 participants