Skip to content

add /auth/device/code and /auth/device/poll endpoints for plugin#68

Merged
warren-xu merged 2 commits intostagingfrom
feat/cli-67-firebase-auth-apis
Jan 27, 2026
Merged

add /auth/device/code and /auth/device/poll endpoints for plugin#68
warren-xu merged 2 commits intostagingfrom
feat/cli-67-firebase-auth-apis

Conversation

@warren-xu
Copy link
Contributor

Overview

  • Implemented steps 2 and 4 in authentication workflow.
  • Added auth_connector file for backend logic of device code generation and polling as detailed in the authentication flow
  • Added helpers to set device code status
  • Used two Modal Dict structures to make device code lookup be O(1) time, can convert back to O(n) time if using 2 Modal Dicts is excessive. This will be needed for the /auth/device/authorize endpoint (which I did not implement because firebase admin sdk was not set up)

Copy link
Contributor

@eshaan-mehta eshaan-mehta left a comment

Choose a reason for hiding this comment

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

Should make another pr for adding tests. Otherwise looks good!

@warren-xu warren-xu merged commit b1a4d63 into staging Jan 27, 2026
6 checks passed
@warren-xu warren-xu deleted the feat/cli-67-firebase-auth-apis branch January 27, 2026 00:45
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