Auth0 Hooks Templates
This repository contains all the templates for the new version of hooks.
Template sample
friendlyName: Client credentialsdescription: | This extensibility point allows custom code to modify the scopes and add custom claims to the tokens issued from the POST /oauth/token Auth0 API.wtCompiler: auth0-ext-compilers/client-credentials-exchangeauth0ExtensionName: credentials-exchangeauth0Extension: runtimesample: | module.exports = function(client, scope, audience, context, cb) { var access_token = {}; access_token['https://foo.com/claim'] = 'bar'; access_token.scope = scope; access_token.scope.push('extra'); cb(null, access_token); };