Skip to content

Commit 9b6d458

Browse files
committed
chore: rename signInRedirectURL to afterSignInUrl across codebase for consistency
1 parent 0e2d7dd commit 9b6d458

File tree

26 files changed

+44
-44
lines changed

26 files changed

+44
-44
lines changed

docs/src/react/components/asgardeo-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { AsgardeoProvider } from "@asgardeo/react";
3838

3939
- `baseURL`: The base URL of asgardeo.
4040

41-
- `signInRedirectURL`: The URL where users should be redirected after they sign in. This should be a page in your application.
41+
- `afterSignInUrl`: The URL where users should be redirected after they sign in. This should be a page in your application.
4242

4343
- `clientId`: The ID of your application. You get this when you register your application with Asgardeo.
4444

docs/src/react/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Then, wrap your application with the `AsgardeoProvider` and pass the basic confi
7373
baseUrl: "https://api.asgardeo.io/t/org_name",
7474
clientId: "gqtroUbA1Qsulqr*****",
7575
scope: ["openid", "internal_login", "profile"],
76-
signInRedirectURL: "https://domain_name:8080",
76+
afterSignInUrl: "https://domain_name:8080",
7777
}}>
7878
<App />
7979
</AsgardeoProvider>

packages/__legacy__/react/src/components/SignIn/SignIn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
159159
/**
160160
* Check the origin of the message to ensure it's from the popup window
161161
*/
162-
if (event.origin !== config.signInRedirectURL) return;
162+
if (event.origin !== config.afterSignInUrl) return;
163163

164164
const {code, state} = event.data;
165165

packages/__legacy__/react/src/providers/AsgardeoProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>> = (
124124
/**
125125
* Send the 'code' and 'state' to the parent window and close the current window (popup)
126126
*/
127-
window.opener.postMessage({code, state}, config.signInRedirectURL);
127+
window.opener.postMessage({code, state}, config.afterSignInUrl);
128128
window.close();
129129
}
130-
}, [config.signInRedirectURL, setAuthentication]);
130+
}, [config.afterSignInUrl, setAuthentication]);
131131

132132
const value: AuthContext = useMemo(
133133
() => ({

packages/browser/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { AsgardeoAuthClient } from "@asgardeo/browser";
2828

2929
// Initialize the auth client
3030
const authClient = new AsgardeoAuthClient({
31-
signInRedirectURL: "https://localhost:3000",
31+
afterSignInUrl: "https://localhost:3000",
3232
clientId: "<your_client_id>",
3333
baseUrl: "https://api.asgardeo.io/t/<org_name>"
3434
});

packages/browser/src/__legacy__/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class AsgardeoSPAClient {
217217
* @example
218218
* ```
219219
* auth.initialize({
220-
* signInRedirectURL: "http://localhost:3000/sign-in",
220+
* afterSignInUrl: "http://localhost:3000/sign-in",
221221
* clientId: "client ID",
222222
* baseUrl: "https://api.asgardeo.io"
223223
* });
@@ -1144,7 +1144,7 @@ export class AsgardeoSPAClient {
11441144
* @example
11451145
* ```
11461146
* const config = {
1147-
* signInRedirectURL: "http://localhost:3000/sign-in",
1147+
* afterSignInUrl: "http://localhost:3000/sign-in",
11481148
* clientId: "client ID",
11491149
* baseUrl: "https://api.asgardeo.io"
11501150
* }

packages/browser/src/__legacy__/helpers/authentication-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class AuthenticationHelper<T extends MainThreadClientConfig | WebWorkerCl
9595
getSessionState,
9696
config.checkSessionInterval ?? 3,
9797
config.sessionRefreshInterval ?? 300,
98-
config.signInRedirectURL,
98+
config.afterSignInUrl,
9999
getAuthzURL,
100100
);
101101
}

packages/browser/src/__legacy__/models/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface MainThreadClientInterface {
5050
config?: SignInConfig,
5151
authorizationCode?: string,
5252
sessionState?: string,
53-
signInRedirectURL?: string,
53+
afterSignInUrl?: string,
5454
tokenRequestConfig?: {
5555
params: Record<string, unknown>;
5656
},
@@ -87,7 +87,7 @@ export interface WebWorkerClientInterface {
8787
params?: SignInConfig,
8888
authorizationCode?: string,
8989
sessionState?: string,
90-
signInRedirectURL?: string,
90+
afterSignInUrl?: string,
9191
tokenRequestConfig?: {
9292
params: Record<string, unknown>;
9393
},

packages/browser/src/__legacy__/models/web-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface WebWorkerCoreInterface {
4545
httpRequestAll(configs: HttpRequestConfig[]): Promise<HttpResponse[] | undefined>;
4646
enableHttpHandler(): void;
4747
disableHttpHandler(): void;
48-
getAuthorizationURL(params?: AuthorizeRequestUrlParams, signInRedirectURL?: string): Promise<AuthorizationResponse>;
48+
getAuthorizationURL(params?: AuthorizeRequestUrlParams, afterSignInUrl?: string): Promise<AuthorizationResponse>;
4949
requestAccessToken(
5050
authorizationCode?: string,
5151
sessionState?: string,

packages/javascript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { AsgardeoAuth } from "@asgardeo/javascript";
2828

2929
// Initialize the auth instance
3030
const auth = new AsgardeoAuth({
31-
signInRedirectURL: "https://localhost:3000",
31+
afterSignInUrl: "https://localhost:3000",
3232
clientId: "<your_client_id>",
3333
baseUrl: "https://api.asgardeo.io/t/<org_name>"
3434
});

0 commit comments

Comments
 (0)