libmodulor
Version:
A TypeScript library to create platform-agnostic applications
23 lines (22 loc) • 990 B
JavaScript
export var UCOutputSideEffectType;
(function (UCOutputSideEffectType) {
/**
* Trigger a clearing of the auth on the calling system (e.g. `SignOut`).
*/
UCOutputSideEffectType["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]`.
*/
UCOutputSideEffectType["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]`.
*/
UCOutputSideEffectType["SET_AUTH"] = "SET_AUTH";
})(UCOutputSideEffectType || (UCOutputSideEffectType = {}));