Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
package tokenmanager
|
||||
|
||||
import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"codeberg.org/mapleopentech/monorepo/cloud/maplefile-backend/pkg/maplefile/client"
|
||||
"codeberg.org/mapleopentech/monorepo/native/desktop/maplefile/internal/service/auth"
|
||||
"codeberg.org/mapleopentech/monorepo/native/desktop/maplefile/internal/usecase/session"
|
||||
)
|
||||
|
||||
// ProvideManager creates the token manager for Wire
|
||||
func ProvideManager(
|
||||
client *client.Client,
|
||||
authService *auth.Service,
|
||||
getSession *session.GetByIdUseCase,
|
||||
logger *zap.Logger,
|
||||
) *Manager {
|
||||
config := DefaultConfig()
|
||||
return New(config, client, authService, getSession, logger)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue