Skip to content

Commit 66e8d01

Browse files
committed
backend/handlers: remove unused trigger-auth
1 parent dbb7a5a commit 66e8d01

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

backend/handlers/handlers.go

-7
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ type Backend interface {
113113
HTTPClient() *http.Client
114114
LookupInsuredAccounts(accountCode accountsTypes.Code) ([]bitsurance.AccountDetails, error)
115115
Authenticate(force bool)
116-
TriggerAuth()
117116
ForceAuth()
118117
CancelConnectKeystore()
119118
SetWatchonly(rootFingerprint []byte, watchonly bool) error
@@ -209,7 +208,6 @@ func NewHandlers(
209208
getAPIRouterNoError(apiRouter)("/banners/{key}", handlers.getBanners).Methods("GET")
210209
getAPIRouterNoError(apiRouter)("/using-mobile-data", handlers.getUsingMobileData).Methods("GET")
211210
getAPIRouterNoError(apiRouter)("/authenticate", handlers.postAuthenticate).Methods("POST")
212-
getAPIRouterNoError(apiRouter)("/trigger-auth", handlers.postTriggerAuth).Methods("POST")
213211
getAPIRouterNoError(apiRouter)("/force-auth", handlers.postForceAuth).Methods("POST")
214212
getAPIRouter(apiRouter)("/set-dark-theme", handlers.postDarkTheme).Methods("POST")
215213
getAPIRouterNoError(apiRouter)("/detect-dark-theme", handlers.getDetectDarkTheme).Methods("GET")
@@ -516,11 +514,6 @@ func (handlers *Handlers) postAuthenticate(r *http.Request) interface{} {
516514
return nil
517515
}
518516

519-
func (handlers *Handlers) postTriggerAuth(r *http.Request) interface{} {
520-
handlers.backend.TriggerAuth()
521-
return nil
522-
}
523-
524517
func (handlers *Handlers) postForceAuth(r *http.Request) interface{} {
525518
handlers.backend.ForceAuth()
526519
return nil

0 commit comments

Comments
 (0)