You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very common use case that can be achieved by the new event hook feature
import{EventUserSessionJWTPreCreate,HookResponse}from"https://deno.land/x/authgear_deno_hook@v0.3.0/mod.ts";exportdefaultasyncfunction(e: EventUserSessionJWTPreCreate): Promise<HookResponse>{// Write your hook with the help of the type definition.return{mutations:{jwt: {payload:{
...e.payload.jwt.payload,standard_attributes: e.payload.user.standard_attributes,custom_attributes: e.payload.user.custom_attributes}}},is_allowed: true};}
The text was updated successfully, but these errors were encountered:
A very common use case that can be achieved by the new event hook feature
The text was updated successfully, but these errors were encountered: