(value string)
| 50 | } |
| 51 | |
| 52 | func (c declaringSessionCodec) Decode(value string) (Session, error) { |
| 53 | if c.revocable { |
| 54 | return c.jwt.Decode(value) |
| 55 | } |
| 56 | return c.opaqueSessionCodec.Decode(value) |
| 57 | } |
| 58 | |
| 59 | func (c declaringSessionCodec) RevocableSessions() bool { |
| 60 | return c.revocable |