-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat-api/fetch-invitations-workspace
- Loading branch information
Showing
9 changed files
with
119 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
meta { | ||
name: Logout | ||
type: http | ||
seq: 6 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/api/auth/logout | ||
body: none | ||
auth: none | ||
} | ||
|
||
|
||
docs { | ||
## Description | ||
|
||
This endpoint clears the token cookie, ensuring the user is logged out securely. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
apps/api/src/environment/dto/create.environment/create.environment.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as React from 'react' | ||
import { Text, Section } from '@react-email/components' | ||
import { otpStyle, text, workspaceDetails } from './styles/common-styles' | ||
import BaseEmailTemplate from './components/base-email-template' | ||
|
||
interface OTPEmailTemplateProps { | ||
otp: string | ||
} | ||
|
||
export const OTPEmailTemplate = ({ otp }: OTPEmailTemplateProps) => { | ||
return ( | ||
<BaseEmailTemplate | ||
previewText="Your One Time Password (OTP) for Keyshade" | ||
heading="Your One Time Password (OTP)" | ||
> | ||
<Text style={text}>Dear User,</Text> | ||
<Text style={text}> | ||
We’ve sent you this email to verify your Keyshade account. Your One-Time | ||
Password (OTP) is: | ||
</Text> | ||
<Section style={workspaceDetails}> | ||
<Text style={otpStyle}> | ||
<strong>{otp}</strong> | ||
</Text> | ||
</Section> | ||
<Text style={text}> | ||
This OTP will expire in <strong>5 minutes</strong>. Please use it to | ||
complete your action on Keyshade. | ||
</Text> | ||
</BaseEmailTemplate> | ||
) | ||
} | ||
|
||
export default OTPEmailTemplate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters