You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Allow to split JWT into parts
This commit is contained in:
committed by
Quentin Gliech
parent
6303175c50
commit
b15b2d0c21
@ -260,6 +260,10 @@ impl<'a, T> Jwt<'a, T> {
|
||||
pub fn into_string(self) -> String {
|
||||
self.raw.into()
|
||||
}
|
||||
|
||||
pub fn into_parts(self) -> (JsonWebSignatureHeader, T) {
|
||||
(self.header, self.payload)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
|
Reference in New Issue
Block a user