Class
VerifiedUser
public final class VerifiedUser
Authenticated user information.
APIs that require the logged-in user's own information to complete the process automatically query the user information through Middleware and relay the information to the controller. @see AuthenticateThenSearchUserMiddleware for detail.
Note
User is a struct and has no id. This class was prepared because I wanted to use it without changing the swagger definition.
Relationships
Nested Types
VerifiedUser.Key
Initializers
init(id:email:token:username:bio:image:)
public init(id: Int = 0, email: String = "", token: String = "", username: String = "", bio: String = "", image: String = "")
Default initalizer.
Parameters
| Name | Type | Description |
|---|---|---|
| id | Int |
|
String |
|
|
| token | String |
Verified JWT. |
| username | String |
|
| bio | String |
|
| image | String |
|