{
  "name": "refresh",
  "runtime": "nodejs4.3",
  "description": "${project} - ${stage}: refresh",
  "customName": false,
  "customRole": false,
  "handler": "refresh/handler.handler",
  "timeout": 60,
  "memorySize": 512,
  "authorizer": {},
  "custom": {
    "excludePatterns": []
  },
  "endpoints": [
    {
      "path": "authentication/refresh/{refresh_token}",
      "method": "GET",
      "type": "AWS",
      "authorizationType": "none",
      "authorizerFunction": false,
      "apiKeyRequired": false,
      "requestParameters": {},
      "requestTemplates": {
        "application/json": "{\"refresh_token\":\"$input.params('refresh_token')\",\"id\":\"$input.params('id')\",\"state\":\"$input.params('state')\",\"host\":\"$input.params().header.get('host')\",\"stage\":\"$context.stage\"}"
      },
      "responses": {
        "401": "$${api400ErrorMatchResponse}",
        "default": "$${apiDefault200Response}"
      }
    },
    {
      "path": "authentication/refresh",
      "method": "OPTIONS",
      "type": "MOCK",
      "requestTemplates": "$${apiCorsRequestTemplate}",
      "responses": "$${apiCorsOptionsResponse}"
    }
  ],
  "events": [],
  "environment": {
    "SERVERLESS_PROJECT": "serverless-authentication-boilerplate",
    "SERVERLESS_STAGE": "${stage}",
    "SERVERLESS_REGION": "${region}",
    "REDIRECT_CLIENT_URI": "${redirectClientURI}",
    "TOKEN_SECRET": "${tokenSecret}",
    "PROVIDER_FACEBOOK_ID": "${providerFacebookId}",
    "PROVIDER_FACEBOOK_SECRET": "${providerFacebookSecret}",
    "PROVIDER_GOOGLE_ID": "${providerGoogleId}",
    "PROVIDER_GOOGLE_SECRET": "${providerGoogleSecret}",
    "PROVIDER_MICROSOFT_ID": "${providerMicrosoftId}",
    "PROVIDER_MICROSOFT_SECRET": "${providerMicrosoftSecret}",
    "PROVIDER_CUSTOM_GOOGLE_ID": "${providerCustomGoogleId}",
    "PROVIDER_CUSTOM_GOOGLE_SECRET": "${providerCustomGoogleSecret}"
  },
  "vpc": {
    "securityGroupIds": [],
    "subnetIds": []
  }
}