MCPcopy Create free account
hub / github.com/gogs/gogs / TouchAccessTokenByID

Method TouchAccessTokenByID

internal/context/auth.go:112–112  ·  view source on GitHub ↗

TouchAccessTokenByID updates the updated time of the given access token to the current time.

(ctx context.Context, id int64)

Source from the content-addressed store, hash-verified

110 // TouchAccessTokenByID updates the updated time of the given access token to
111 // the current time.
112 TouchAccessTokenByID(ctx context.Context, id int64) error
113
114 // GetUserByID returns the user with given ID. It returns
115 // database.ErrUserNotExist when not found.

Callers 2

authenticatedUserIDFunction · 0.65
AuthenticateByTokenFunction · 0.65

Implementers 4

storeinternal/context/store.go
MockStoreinternal/route/lfs/mocks_test.go
storeinternal/route/lfs/store.go
storeinternal/route/repo/store.go

Calls

no outgoing calls

Tested by

no test coverage detected