mirror of
https://github.com/element-hq/dendrite.git
synced 2025-03-14 14:15:35 +00:00
fix typo in api.QueryAccessTokenAPI
This commit is contained in:
parent
641f5b54f8
commit
17b7677071
2 changed files with 5 additions and 6 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
// DefaultUserVerifier implements UserVerifier interface
|
||||
type DefaultUserVerifier struct {
|
||||
UserAPI api.QueryAcccessTokenAPI
|
||||
UserAPI api.QueryAccessTokenAPI
|
||||
}
|
||||
|
||||
// VerifyUserFromRequest authenticates the HTTP request,
|
||||
|
|
|
@ -48,7 +48,7 @@ type RoomserverUserAPI interface {
|
|||
|
||||
// api functions required by the media api
|
||||
type MediaUserAPI interface {
|
||||
QueryAcccessTokenAPI
|
||||
QueryAccessTokenAPI
|
||||
}
|
||||
|
||||
// api functions required by the federation api
|
||||
|
@ -65,7 +65,7 @@ type FederationUserAPI interface {
|
|||
|
||||
// api functions required by the sync api
|
||||
type SyncUserAPI interface {
|
||||
QueryAcccessTokenAPI
|
||||
QueryAccessTokenAPI
|
||||
SyncKeyAPI
|
||||
QueryAccountData(ctx context.Context, req *QueryAccountDataRequest, res *QueryAccountDataResponse) error
|
||||
PerformLastSeenUpdate(ctx context.Context, req *PerformLastSeenUpdateRequest, res *PerformLastSeenUpdateResponse) error
|
||||
|
@ -76,7 +76,7 @@ type SyncUserAPI interface {
|
|||
|
||||
// api functions required by the client api
|
||||
type ClientUserAPI interface {
|
||||
QueryAcccessTokenAPI
|
||||
QueryAccessTokenAPI
|
||||
LoginTokenInternalAPI
|
||||
UserLoginAPI
|
||||
ClientKeyAPI
|
||||
|
@ -132,9 +132,8 @@ type QuerySearchProfilesAPI interface {
|
|||
QuerySearchProfiles(ctx context.Context, req *QuerySearchProfilesRequest, res *QuerySearchProfilesResponse) error
|
||||
}
|
||||
|
||||
// FIXME: typo in Acccess
|
||||
// common function for creating authenticated endpoints (used in client/media/sync api)
|
||||
type QueryAcccessTokenAPI interface {
|
||||
type QueryAccessTokenAPI interface {
|
||||
QueryAccessToken(ctx context.Context, req *QueryAccessTokenRequest, res *QueryAccessTokenResponse) error
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue