Method: GraphQL::Schema::Base64Encoder.decode
- Defined in:
- lib/graphql/schema/base_64_encoder.rb
.decode(encoded_text, nonce: false) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 14 15 16 |
# File 'lib/graphql/schema/base_64_encoder.rb', line 11 def self.decode(encoded_text, nonce: false) # urlsafe_decode64 is for forward compatibility Base64.urlsafe_decode64(encoded_text) rescue ArgumentError raise GraphQL::ExecutionError, "Invalid input: #{encoded_text.inspect}" end |