mirror of
https://github.com/sstent/FitTrack_GarminSync.git
synced 2026-02-01 12:01:46 +00:00
19 lines
878 B
Markdown
19 lines
878 B
Markdown
# Data Model: Garmin Login Improvements
|
|
|
|
## Entity: GarminCredentials
|
|
|
|
Represents the stored Garmin authentication information.
|
|
|
|
### Attributes:
|
|
- `garmin_username` (string): The Garmin Connect account username (email).
|
|
- `garmin_password_plaintext` (string): The plaintext password for the Garmin Connect account.
|
|
- `access_token` (string): The Garmin Connect access token.
|
|
- `access_token_secret` (string): The Garmin Connect access token secret.
|
|
- `token_expiration_date` (datetime): The expiration date and time of the access token.
|
|
|
|
### Relationships:
|
|
- Stored in `centralDB`.
|
|
|
|
### Validation Rules:
|
|
- `garmin_username` and `garmin_password_plaintext` are required for initial login.
|
|
- `access_token`, `access_token_secret`, and `token_expiration_date` are generated upon successful Garmin authentication and are required for subsequent token refreshes and sync operations. |