Skip to content

fix: ensure correct token is used #946

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

Merged
merged 1 commit into from
Apr 2, 2024
Merged

fix: ensure correct token is used #946

merged 1 commit into from
Apr 2, 2024

Conversation

setchy
Copy link
Member

@setchy setchy commented Apr 2, 2024

Fixes #944

Previously we were not using the correct enterprise token for generating notification title url links.

This change extends the Notification type to pass the hostname along with it (previously was only stored adjacent), creates a new helper for getting the correct auth token, and uses this to make subsequent authenticated api calls.

@setchy setchy added the bug Something isn't working label Apr 2, 2024
@setchy setchy added this to the Release 5.2.0 milestone Apr 2, 2024
Copy link
Member

@afonsojramos afonsojramos left a comment

Choose a reason for hiding this comment

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

Awesome fix 🤓

@setchy
Copy link
Member Author

setchy commented Apr 2, 2024

Awesome fix 🤓

Haha 😅

Can't wait to overhaul the account module and introduce a GitifyNotifcation type that is self contained 🤞

@setchy setchy merged commit 3443ca2 into main Apr 2, 2024
@setchy setchy deleted the fix/gh-enterprise-token branch April 2, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad credentials after clicking on PR title
2 participants