Skip to content

Conversation

nutella
Copy link

@nutella nutella commented Jun 25, 2024

I've modified Credentials.php to save auth token until expiration (typically 3600 seconds), so sequences of notifications will not require new token for each message submission.

Also added an example of notification with data payload.

@lkaybob
Copy link
Owner

lkaybob commented Jun 26, 2024

Saving individual access token inside package instance would cause security vulnerability. Access token should be managed outside of the library.

I guess it would be better to make Client class to accept access token when being created

@nutella
Copy link
Author

nutella commented Jun 26, 2024 via email

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