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

Cannot find PasetoBuilder in 0.7.2 #99

Open
beastlyDartfordian opened this issue Dec 23, 2022 · 2 comments
Open

Cannot find PasetoBuilder in 0.7.2 #99

beastlyDartfordian opened this issue Dec 23, 2022 · 2 comments
Labels
question Further information is requested

Comments

@beastlyDartfordian
Copy link

Hi,

My project targets 4.8 so I'm trying to use version 0.7.2, however I can't find PasetoBuilder. I've tried adding "using Paseto.Builder" but that doesn't look available, and it looks like I can't move to version 1.x as they don't support dotnet 4.8
image
image

Any help, advice, or steer would be greatly appreciated - Cheers

@daviddesmet
Copy link
Owner

Hi @beastlyDartfordian

Back in 0.7.2 the way to create tokens is like:

var token = new PasetoBuilder<Version2>()
		.WithKey(privateKey)
		.AddClaim("example", "Hello Paseto!")
		.Expiration(DateTime.UtcNow.AddHours(24))
		.AsPublic() // Purpose
		.Build();

You can check the README as what it was back then here.

Will take a look if is possible to support 4.8.

@daviddesmet daviddesmet added the question Further information is requested label Dec 29, 2022
@beastlyDartfordian
Copy link
Author

Hi David,

Thanks for the response, I've managed to get it working successfully so thanks for that as well.

If you could take a look at the possibility of supporting 4.8 that would be great. We've only just upgraded to it, and don't see us moving to core any time soon

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

No branches or pull requests

2 participants