diff options
author | Chocobozzz <chocobozzz@framasoft.org> | 2020-11-20 15:36:43 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@framasoft.org> | 2020-11-20 15:36:43 +0100 |
commit | 74fd2643b43057c25558b3da79398efe104e2660 (patch) | |
tree | 4fd7dd84775780eed82bc4b3caaa328c3526a14c /server/types/plugins/register-server-auth.model.ts | |
parent | 8f3ad70874f8769f5340632754dc2ca7f4c82733 (diff) | |
download | PeerTube-74fd2643b43057c25558b3da79398efe104e2660.tar.gz PeerTube-74fd2643b43057c25558b3da79398efe104e2660.tar.zst PeerTube-74fd2643b43057c25558b3da79398efe104e2660.zip |
Provide express request to onLogout call
+ pluginInfo related changes
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 |