"Sign in with Apple" backend library in ruby.
gem install apple_id
Require
require 'apple_id'
When calling ApleID::IdToken#verify! with verify_signature: true, this gem automatically fetches Apple's JWKS and use it for signature verification.
ApleID::IdToken#verify!
verify_signature: true
If you want to cache the JWKS, set AppleID::JWKS.cache, then this gem caches JWKS until Apple start using new & non-cached JWK.
AppleID::JWKS.cache
AppleID::JWKS.cache = Rails.cache
Call AppleID.debug!, then you'll see all HTTP requests after that line in the log.
AppleID.debug!
In Rails, you'll need to set AppleID.logger = Rails.logger.
AppleID.logger = Rails.logger
AppleID.debug! AppleID.logger = Rails.logger
See AppleID::Client.
There was an error while loading. Please reload this page.