UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

22 lines (21 loc) 819 B
export const UCOutputSideEffectType = { /** * Trigger a clearing of the auth on the calling system (e.g. `SignOut`). */ CLEAR_AUTH: 'CLEAR_AUTH', /** * Trigger a redirect on the calling system (e.g. after the final round of an OAuth1 flow) * * NOTE : This is a "final" side effects, which means it must be the last one in the array of side effects. * Indeed, in most servers, once you redirect, you cannot do more with the `req`/`res` (e.g. on `express`). * * It expects a field `redirect: URL` in `output.parts._0.items[0]`. */ REDIRECT: 'REDIRECT', /** * Trigger a setting of the auth on the calling system (e.g. `SignIn` / `SignUp`). * * It expects a field `jwt: JWT` in `output.parts._0.items[0]`. */ SET_AUTH: 'SET_AUTH', };