Jeffrey Yu

Results 33 comments of Jeffrey Yu

@samad-yar-khan Thanks for the insights! Like my comment above, I think having token & URL stored in a singleton solves the issue of fetching themevery time. Whenever the user updates...

Implemented the singleton approach and applied to all migrated methods in this PR and in #144. Behavior same as before: ![singleton](https://github.com/RocketChat/Apps.Github22/assets/35394596/f9f1caf6-18c1-4417-9e69-be8d818892dc)

The singleton gets api host from environment and generates access token when initialized. We'll need to update these when user update settings / login / logout in another PR.