Layerbeat

Finish provider authorization

GET
/v1/auth/social/{provider}/callback

Completes Google or GitHub sign-in and redirects to the Layerbeat console.

Access: Provider redirect with the original browser cookies and valid state.

Path Parameters

provider*string

The fixed supported identity provider.

Value in"google""github"

Query Parameters

state?string

Random state from the authorization request; validated with the bound cookie.

code?string

One-time provider authorization code. Never logged or stored.

error?string

Provider cancellation/error indicator. Provider descriptions are ignored.

Response Body

A fixed same-origin console redirect, with protected session cookies only on successful sign-in. Failure is represented by an allowlisted social_error fragment parameter.

response?stringtext/html
curl -X GET 'https://layerbeat.com/v1/auth/social/google/callback?state=example-state&code=provider-code&error=access_denied'
"<a href=\"https://layerbeat.com/console/#/overview?social=success\">Found</a>."