Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session token signature is invalid #2

Open
slvzy opened this issue Nov 26, 2022 · 0 comments
Open

session token signature is invalid #2

slvzy opened this issue Nov 26, 2022 · 0 comments

Comments

@slvzy
Copy link

slvzy commented Nov 26, 2022

app := &gopify.Gopify{
ApiKey: "xxxx",
ApiSecret: "xxx",
RedirectUrl: "https://example.com/auth/callback",
Scopes: []string{"read_products", "read_orders"},
}
err := app.VerifyTokenSignature("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczpcL1wvcm9ib3NlbGx0ZXN0c3RvcmUtMS5teXNob3BpZnkuY29tXC9hZG1pbiIsImRlc3QiOiJodHRwczpcL1wvcm9ib3NlbGx0ZXN0c3RvcmUtMS5teXNob3BpZnkuY29tIiwiYXVkIjoiMWNkNzMzMGNjNjA4MDE0MDc0ZWY5ODdlNDQzOWNkZmYiLCJzdWIiOiI4NTczODU4NjM1MiIsImV4cCI6MTY2OTM2OTA2NiwibmJmIjoxNjY5MzY5MDA2LCJpYXQiOjE2NjkzNjkwMDYsImp0aSI6IjY0Mzc4MjcyLTdlNWMtNGU0ZS1hZmMzLWIwYjEwOWQ1MDYyOCIsInNpZCI6IjFhY2FlYzQzMjRiZWFiNDUxMzExNzE5YWM5MDFhNDQyMGIwMzk1YzhkOGFkMzRlMGEyMGRhMTBiNTQ4YTg3ZWYifQ.mGvOKGkuN1FPitB9WZO6kbrC5_DyGDKWjgA1A0ZcQ4c")
result: session token signature is invalid
image
Here you can verify the success of the signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant