Skip to content

Commit

Permalink
Merge branch 'main' into pocketbase_v0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
puria authored Jan 7, 2025
2 parents 9476972 + 701a407 commit 36dd000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/didimo/didimo.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import (
"github.com/forkbombeu/didimo/pocketbase/webauthn"
"github.com/forkbombeu/didimo/pocketbase/zencode"

"github.com/labstack/echo/v5"

Check failure on line 18 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

no required module provides package github.com/labstack/echo/v5; to add it:

Check failure on line 18 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

could not import github.com/labstack/echo/v5 (invalid package name: "")

Check failure on line 18 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

no required module provides package github.com/labstack/echo/v5; to add it:

Check failure on line 18 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

could not import github.com/labstack/echo/v5 (invalid package name: "")
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/models"

Check failure on line 23 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

no required module provides package github.com/pocketbase/pocketbase/models; to add it:

Check failure on line 23 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

could not import github.com/pocketbase/pocketbase/models (invalid package name: "")

Check failure on line 23 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

no required module provides package github.com/pocketbase/pocketbase/models; to add it:

Check failure on line 23 in cmd/didimo/didimo.go

View workflow job for this annotation

GitHub Actions / Lint

could not import github.com/pocketbase/pocketbase/models (invalid package name: "")
"github.com/pocketbase/pocketbase/plugins/jsvm"
"github.com/pocketbase/pocketbase/plugins/migratecmd"
)
Expand Down
6 changes: 4 additions & 2 deletions pocketbase/webauthn/webauthn.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ func Register(app *pocketbase.PocketBase) error {
}
return e.JSON(http.StatusOK, make(map[string]interface{}))
})
se.Router.GET("/api/webauthn/login/begin/:email", func(e *core.RequestEvent) error {

se.Router.GET("/api/webauthn/login/begin/:email", func(e *core.RequestEvent) error {
w, err := NewWebAuthnFromEnv(app)
if err != nil {
return err
Expand Down Expand Up @@ -296,7 +297,8 @@ func Register(app *pocketbase.PocketBase) error {

return e.JSON(http.StatusOK, options)
})
se.Router.POST("/api/webauthn/login/finish/:email", func(e *core.RequestEvent) error {

se.Router.POST("/api/webauthn/login/finish/:email", func(e *core.RequestEvent) error {
w, err := NewWebAuthnFromEnv(app)
if err != nil {
return err
Expand Down

0 comments on commit 36dd000

Please sign in to comment.