Skip to content

Conversation

@excid3
Copy link
Contributor

@excid3 excid3 commented Dec 30, 2021

This allows passing in credentials either as a file path or IO object. Useful if you're storing your credentials in ENV or Rails credentials for example.

FCM.new("test", "creds.json")
FCM.new("test", StringIO.new("example"))
FCM.new("test", Rails.application.credentials.dig(:google, :credentials))
@sabman sabman merged commit c2285ff into decision-labs:master Dec 31, 2021
@sabman
Copy link
Member

sabman commented Dec 31, 2021

love it!

bangline pushed a commit to Apps2Data-Holdings-Ltd/fcm that referenced this pull request Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants