Sha256: 5fa6fece21439ffa6b1548a047e31b5af86da652a93325c5eaf5181279c4c1bc
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module Shimmer module Auth class GoogleProvider < Provider self.token_column = :google_id private def request_details(params) payload = GoogleIDToken::Validator.new.check(params[:credential], ENV.fetch("GOOGLE_CLIENT_ID")) UserDetails.new token: payload["sub"], email: payload["email"], first_name: payload["given_name"].presence, last_name: payload["family_name"].presence end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shimmer-0.0.13 | lib/shimmer/auth/google_provider.rb |