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

Rewrite authentication flow. #31

Merged
merged 3 commits into from
Jun 1, 2020
Merged

Rewrite authentication flow. #31

merged 3 commits into from
Jun 1, 2020

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented May 29, 2020

  • Use session tokens for:
    • The 14-day expiry vs previous 1-hour
    • Validate GitHub identity once per-session
  • Use caching for performance
    • Still some problems due to firebase function cold-start costs -- not sure I can do much about that without a lot more work (doesn't seem worth it).
  • Improve logging.

jonmeow added 2 commits May 28, 2020 13:36
- Use session tokens for:
  - The 14-day expiry vs previous 1-hour
  - Validate GitHub identity once per-session
- Use caching for performance
- Improve logging.
@jonmeow jonmeow requested a review from chandlerc May 29, 2020 21:06
Copy link
Contributor

@chandlerc chandlerc left a comment

Choose a reason for hiding this comment

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

Not sure how much of this I understood, but seems fine. Naming suggestion below, but regardless of that this LGTM.

src/firebase/functions/index.js Outdated Show resolved Hide resolved
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