Skip to content

Commit

Permalink
build: update package path
Browse files Browse the repository at this point in the history
  • Loading branch information
YiNNx committed Sep 4, 2023
1 parent bf20247 commit 0fca050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

```go
import(
"github.com/BingyanStudio/oidc-cli"
"github.com/BingyanStudio/oidc-cli/oidc"
)

var oidcConfig = oidc_cli.Config{
var oidcConfig = oidc.Config{
ClientID: "xxxx-xx-xxxxxxx-xxxx",
ClientSecret: "xxxxxxxxx",
RedirectURL: "http://example-client.com/callback",
}

func OidcCallbackHandler(c echo.Context) error {
code := c.QueryParam("code")
callbackRes, err := oidc_cli.Callback(oidcConfig, code)
callbackRes, err := oidc.Callback(oidcConfig, code)
if err != nil {
...
}
Expand Down
2 changes: 1 addition & 1 deletion cli.go → oidc/cli.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package oidc_cli
package oidc

import (
"context"
Expand Down

0 comments on commit 0fca050

Please sign in to comment.