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

How to read the consent level ? #16

Closed
nssidhu opened this issue Oct 1, 2022 · 1 comment
Closed

How to read the consent level ? #16

nssidhu opened this issue Oct 1, 2022 · 1 comment

Comments

@nssidhu
Copy link

nssidhu commented Oct 1, 2022

How do i know if user has denied the consent in my Razor Page ?
Is there a way to track via code in .razor page as to what has been accepted and what has been denied ?

@RyanTT
Copy link
Member

RyanTT commented Oct 1, 2022

Hi, the CookieConsentService has an EventHandler that notifies you when the preferences have changed

https://github.com/BytexDigital/BytexDigital.Blazor.Components.CookieConsent/blob/master/BytexDigital.Blazor.Components.CookieConsent/CookieConsentService.cs#L43

@RyanTT RyanTT closed this as completed Nov 19, 2022
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

2 participants