diff options
Diffstat (limited to 'server/types/plugins/register-server-auth.model.ts')
-rw-r--r-- | server/types/plugins/register-server-auth.model.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/types/plugins/register-server-auth.model.ts b/server/types/plugins/register-server-auth.model.ts index 31c71b0d0..3e1a5aeba 100644 --- a/server/types/plugins/register-server-auth.model.ts +++ b/server/types/plugins/register-server-auth.model.ts | |||
@@ -21,7 +21,8 @@ interface RegisterServerAuthBase { | |||
21 | authName: string | 21 | authName: string |
22 | 22 | ||
23 | // Called by PeerTube when a user from your plugin logged out | 23 | // Called by PeerTube when a user from your plugin logged out |
24 | onLogout?(user: MUser): void | 24 | // Returns a redirectUrl sent to the client or nothing |
25 | onLogout?(user: MUser, req: express.Request): Promise<string> | ||
25 | 26 | ||
26 | // Your plugin can hook PeerTube access/refresh token validity | 27 | // Your plugin can hook PeerTube access/refresh token validity |
27 | // So you can control for your plugin the user session lifetime | 28 | // So you can control for your plugin the user session lifetime |