Skip to main content

7 docs tagged with "Authentication"

A package to implement almost full authentication and protect routes with Expo Router. `@flexnative/authentication` handles user authentication and protecting routes using Expo Router. The package includes React context, custom hooks, type definitions, and utilizes `expo-secure-store` for secure token storage. This integration enhances the security and manageability of authentication processes across the application.

View all tags

Authentication

A package to implement almost full authentication and protect routes with Expo Router.

Example

This guide provides an example that demonstrates how to implement authentication and protect routes with Expo Router using @flexnative/authentication.

getStorageItemAsync

This function abstracts away the complexities of fetching stored items differently based on the execution context, providing a simple and unified API for retrieving data across different environments.

setStorageItemAsync

This function is designed to abstract away the complexities of environment-specific storage management, allowing for consistent storage operations across various platforms.

useAuthState

useAuthState is a basic hook that persists tokens securely on native with expo-secure-store and in local storage on web.

Utilities

Some utilities methods related with Authentication.