Skip to content

[STR-506] Add bypassDeviceCheck option#31

Merged
frostbournesb merged 1 commit intodevelopfrom
task/dante/str-506
Apr 4, 2023
Merged

[STR-506] Add bypassDeviceCheck option#31
frostbournesb merged 1 commit intodevelopfrom
task/dante/str-506

Conversation

@frostbournesb
Copy link
Contributor

@frostbournesb frostbournesb commented Apr 3, 2023

Test Procedure:

  • Put a valid string api key in .env
  • Go to the test page
  • Make sure adblock / brave shield is disabled
  • Make a String User and verify an email for it
  • Replace line src/lib/services/auth.service.ts:21 with:
const visitorData = {
	"visitorId": "RgauFjjfEjKk2QIxwMqt", // Use fingerprint data that isn't yours
	"requestId": "1680123007076.cdJGvH"
}
  • In devtools Application tab, clear site data including 3rd party cookies, restart the yarn dev server to rebundle, refresh the page and try to log in again
  • It should send you to the verify device page, do not verify and go back
  • In src/routes/+page.svelte:11 put
$: payload = {
  options: {
	  bypassDeviceCheck: true
  },
  • It should not ask you to verify your device when you try to log in again

@ocasta181 ocasta181 requested a review from saito-sv April 3, 2023 23:53
@frostbournesb frostbournesb merged commit 1c1b504 into develop Apr 4, 2023
@frostbournesb frostbournesb deleted the task/dante/str-506 branch April 4, 2023 18:34
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

Successfully merging this pull request may close these issues.

3 participants