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

auth: support cookies as another form of auth #92

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

paigen11
Copy link
Collaborator

@paigen11 paigen11 commented Nov 12, 2024

Problem Context

Notehub is switching internally to use the Notehub JS SDK, but it needs the ability to pass auth credentials as cookies for API requests instead of having to explicitly set an API key to go with every call.

Modify the Notehub JS library so it will accept either cookies or API keys for auth.

Changes

Enable cookies in the Notehub JS library, and modify the defaultHeaders so they don't throw a warning message about unsafe header when the API is used client-side.

Testing

Automated tests pass?

@paigen11 paigen11 changed the title auth: support cookie for auth auth: support cookies as another form of auth Nov 14, 2024
@paigen11 paigen11 marked this pull request as ready for review November 14, 2024 14:10
@paigen11 paigen11 merged commit 4f0fb20 into main Nov 14, 2024
4 checks passed
@paigen11 paigen11 deleted the pn-support-cookies branch November 14, 2024 14:11
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.

1 participant