This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Description
For example if you want to pass something on logout
void auth.logout({
makeRequest: true,
redirect: { name: 'auth-login', params: { foo: user.value.foo } }
})
This Typescript definition in index.d.ts:
type Redirect = {path: string} | {name: string} | string;
should also allow passing params to named routes. Something like this should work:
type Redirect = {path: string} | {name: string, params?: { [key: string]: any } } | string;