(value string)
| 34 | } |
| 35 | |
| 36 | func (c opaqueSessionCodec) Decode(value string) (Session, error) { |
| 37 | s, err := c.jwt.Decode(value) |
| 38 | if err != nil { |
| 39 | return nil, err |
| 40 | } |
| 41 | return opaqueSession{claims: s.(JWTSessionClaims)}, nil |
| 42 | } |
| 43 | |
| 44 | // declaringSessionCodec is a custom SessionCodec that implements |
| 45 | // RevocableSessionCodec: if revocable is set, it makes RevocableSessions and |