feat: add snjs package
This commit is contained in:
20
packages/snjs/lib/Services/Session/Sessions/JwtSession.ts
Normal file
20
packages/snjs/lib/Services/Session/Sessions/JwtSession.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Session } from './Session'
|
||||
|
||||
/** Legacy, for protocol versions <= 003 */
|
||||
|
||||
export class JwtSession extends Session {
|
||||
public jwt: string
|
||||
|
||||
constructor(jwt: string) {
|
||||
super()
|
||||
this.jwt = jwt
|
||||
}
|
||||
|
||||
public get authorizationValue(): string {
|
||||
return this.jwt
|
||||
}
|
||||
|
||||
public canExpire(): false {
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user