@erikey/react 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erikey/react",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "React SDK for Erikey - B2B authentication and user management. UI components based on better-auth-ui.",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -77,6 +77,7 @@ export function AuthView({
77
77
  }: AuthViewProps) {
78
78
  const isHydrated = useIsHydrated()
79
79
  const {
80
+ authFlowMode,
80
81
  basePath,
81
82
  credentials,
82
83
  localization: contextLocalization,
@@ -421,6 +422,25 @@ export function AuthView({
421
422
  : localization.SIGN_IN}
422
423
  </Button>
423
424
  </Link>
425
+ ) : authFlowMode === "internal" ? (
426
+ <Link
427
+ className={cn(
428
+ "text-foreground underline",
429
+ classNames?.footerLink
430
+ )}
431
+ href={`${basePath}/${viewPaths.SIGN_IN}${isHydrated ? window.location.search : ""}`}
432
+ >
433
+ <Button
434
+ variant="link"
435
+ size="sm"
436
+ className={cn(
437
+ "px-0 text-foreground underline",
438
+ classNames?.footerLink
439
+ )}
440
+ >
441
+ {localization.GO_BACK}
442
+ </Button>
443
+ </Link>
424
444
  ) : (
425
445
  <Button
426
446
  variant="link"