X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fplugins%2Fregister-server-auth.model.ts;h=3e1a5aeba1ba0c736033eaad8357607f608f4dcf;hb=37a44fc915eef2140e22ceb96aba6b6eb2509007;hp=31c71b0d01d905a6d3c53677ae960ac845f391c5;hpb=67ed6552b831df66713bac9e672738796128d33f;p=github%2FChocobozzz%2FPeerTube.git 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 { authName: string // Called by PeerTube when a user from your plugin logged out - onLogout?(user: MUser): void + // Returns a redirectUrl sent to the client or nothing + onLogout?(user: MUser, req: express.Request): Promise // Your plugin can hook PeerTube access/refresh token validity // So you can control for your plugin the user session lifetime