Learn how authentication works in the Guile platform
The Authentication API provides multiple authentication methods to suit different use cases and security requirements. Users can authenticate via one-time passcodes (OTP) sent via email or SMS, or use passkeys for secure, passwordless authentication. Once verified, users receive JWT tokens to access protected resources throughout the platform.
The platform uses two types of tokens. Access tokens authenticate your API requests and expire quickly for security (15 minutes). Refresh tokens last much longer and let you get new access tokens without re-authenticating the user.Access tokens must be included in the Authorization header for protected API calls. When they expire, you can exchange your refresh token for new tokens without going through the challenge flow again.For operations that don’t require user authentication, you can issue an anonymous token instead.If a refresh token becomes invalid or expires, the API returns an invalidRefreshToken error, and you’ll need to start the authentication flow over.