Creates a JWT # Errors when could not convert user claims to jwt token
(&self, secret: &str, expiration: &u64)
| 192 | /// |
| 193 | /// when could not convert user claims to jwt token |
| 194 | pub fn generate_jwt(&self, secret: &str, expiration: &u64) -> ModelResult<String> { |
| 195 | Ok(jwt::JWT::new(secret).generate_token(expiration, self.pid.to_string(), None)?) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | impl super::_entities::users::ActiveModel { |