Skip to main content
Version: 0.13.0 (Previous)

🚀 OAuth features

OAuth features are SDK composers, not Express middleware; authService mounts each provider's initiation and callback feature.

Inventory

FeatureComposed schema(s)Composed route(s)Purpose
googleOAuthFeaturegoogleOauthSchemagoogleOAuthRouteStart Google OAuth.
googleOAuthCallbackFeaturenonegoogleOAuthCallbackRouteHandle Google callback.
lineOAuthFeaturelineOauthSchemalineOAuthRouteStart LINE OAuth.
lineOAuthCallbackFeaturenonelineOAuthCallbackRouteHandle LINE callback.
twitterOAuthFeaturetwitterOauthSchematwitterOAuthRouteStart Twitter OAuth.
twitterOAuthCallbackFeaturenonetwitterOAuthCallbackRouteHandle Twitter callback.

Details

Each feature is mounted by authService. The source definitions below show the exact schema-to-route composition.

googleOAuthFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.

View complete source
export const googleOAuthFeature = compose(googleOauthSchema, googleOAuthRoute);

googleOAuthCallbackFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.

Composes only the callback route; no callback schema is composed.

View complete source
export const googleOAuthCallbackFeature = compose(googleOAuthCallbackRoute);

lineOAuthFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.

View complete source
export const lineOAuthFeature = compose(lineOauthSchema, lineOAuthRoute);

lineOAuthCallbackFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.

Composes only the callback route; no callback schema is composed.

View complete source
export const lineOAuthCallbackFeature = compose(lineOAuthCallbackRoute);

twitterOAuthFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.

View complete source
export const twitterOAuthFeature = compose(twitterOauthSchema, twitterOAuthRoute);

twitterOAuthCallbackFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.

Composes only the callback route; no callback schema is composed.

View complete source
export const twitterOAuthCallbackFeature = compose(twitterOAuthCallbackRoute);