Class: CertificateFirebaseWorker
- Inherits:
-
ApplicationWorker
- Object
- ApplicationWorker
- CertificateFirebaseWorker
- Defined in:
- app/workers/certificate_firebase_worker.rb
Overview
we use this worker to update the firebase certificate Login with Apple requires a valid certificate to verify the token This worker will update the certificate every X hours, see config/sidekiq_schedule.yml
Instance Method Summary collapse
Methods inherited from ApplicationWorker
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/workers/certificate_firebase_worker.rb', line 10 def perform if IS_STAGING_ENV Rails.logger.info('Skipping Firebase certificate update in non-production environment') return end FirebaseIdToken::Certificates.request! end |