-
Notifications
You must be signed in to change notification settings - Fork 0
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 JWT Authentication #12
base: main
Are you sure you want to change the base?
Conversation
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.
Two little nitpicks - nice work! Thanks for doing this!
lib/src/shared_model/access_key.dart
Outdated
import 'package:equatable/equatable.dart'; | ||
|
||
/// Holds properties for generating a Doordash Drive API token | ||
class AccessKey extends Equatable { |
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.
class AccessKey extends Equatable { | |
class TokenProperties extends Equatable { |
I think when I hear access key, I think of a single key I need to make API calls. Could we rename this to be a bit more clear?
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.
I agree with you. When using AccessKey I was following Doordash Drive's doc suggestion. Will apply the change
lib/src/token_storage.dart
Outdated
late String _token; | ||
final AccessKey _accessKey; | ||
|
||
String get getToken { |
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.
String get getToken { | |
String get token { |
since this is already a getter, can we rename this?
Status
READY
Description
This PR adds missing functionality for authenticating with DoorDashDrive based on an
AccessKey
provided.It includes a little bit of refactor to make it work and isolate how we handle and store the generated token.
Type of Change