GetByGUIDWithGrants returns the OAuth client by its GUID (client_id) with the grants for the user.
(ctx context.Context, guid string, uid int)
| 22 | GetByGUID(ctx context.Context, guid string) (*ent.OAuthClient, error) |
| 23 | // GetByGUIDWithGrants returns the OAuth client by its GUID (client_id) with the grants for the user. |
| 24 | GetByGUIDWithGrants(ctx context.Context, guid string, uid int) (*ent.OAuthClient, error) |
| 25 | // UpsertGrant creates or updates an OAuth grant for a user and client. |
| 26 | UpsertGrant(ctx context.Context, userID, clientID int, scopes []string) error |
| 27 | // UpdateGrantLastUsedAt updates the last used at for an OAuth grant for a user and client. |
no outgoing calls
no test coverage detected