SignInUrlOptions Struct
Options to customize the behaviour of signInUrl().
Example
ts
const userpool = new cognito.UserPool(this, 'UserPool', {
// ...
});
const client = userpool.addClient('Client', {
// ...
oAuth: {
flows: {
implicitCodeGrant: true,
},
callbackUrls: [
'https://myapp.com/home',
'https://myapp.com/users',
],
},
});
const domain = userpool.addDomain('Domain', {
// ...
});
const signInUrl = domain.signInUrl(client, {
redirectUri: 'https://myapp.com/home', // must be a URL configured under 'callbackUrls' with the client
});
Properties
Whether to return the FIPS-compliant endpoint.
Default: return the standard URL
Where to redirect to after sign in.
The path in the URI where the sign-in page is located.