I hereby claim:
- I am arvinje on github.
- I am arvinje (https://keybase.io/arvinje) on keybase.
- I have a public key ASAMcP7uLGWQrlTAXymVPLaXkl1z168B9DRPVkV84LGFgQo
To claim this, I am signing this object:
import axios from 'axios' | |
import jwt from 'jsonwebtoken' | |
import jwkToPem from 'jwk-to-pem' | |
import { AuthResponse, CustomAuthorizerEvent, PolicyDocument } from 'aws-lambda' | |
import { AxiosError, AuthError, ValidationError } from '../../shared/errors' | |
// For AWS Cognito: https://cognito-idp.<region>.amazonaws.com/<user pool id> | |
// refer to: http://amzn.to/2fo77UI | |
const iss = process.env.ISS |
I hereby claim:
To claim this, I am signing this object:
module ActionControllerParametersExtension | |
extend ActiveSupport::Concern | |
# A recursive method to traverse the params hash. It replaces | |
# persian numerals with their equivalent english numerals. | |
# It's not the best way to do it, but it works for now. | |
def fix_numerals(element=self) | |
case element | |
when Hash | |
Hash[ element.map{ |k,v| [k, fix_numerals(v)] } ] |