Skip to content

Commit

Permalink
docs: update readme code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 committed Jan 14, 2025
1 parent 1aad1f4 commit 6c4b51c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,23 @@ Use passage-go to implement Passkey Complete into your Go backend to authenticat
### Install

```shell
go get github.com/passageidentity/passage-go
go get github.com/passageidentity/passage-go/v2
```

### Import

```go
import (
"github.com/passageidentity/passage-go"
"os"

"github.com/passageidentity/passage-go/v2"
)
```

### Initialize

```go
psg, err := passage.New(os.Getenv("PASSAGE_APP_ID"), &passage.Config{APIKey: os.Getenv("PASSAGE_API_KEY")})
psg, err := passage.New(os.Getenv("PASSAGE_APP_ID"), os.Getenv("PASSAGE_API_KEY"))
```

### Go Passwordless
Expand Down

0 comments on commit 6c4b51c

Please sign in to comment.