Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdheshnayak/next-ims-lti
npm package to manage ims-lti in nextjs. current package only supports ims in react but not in react. so i extended that to support in nextjs also.
https://github.com/abdheshnayak/next-ims-lti
Last synced: about 1 month ago
JSON representation
npm package to manage ims-lti in nextjs. current package only supports ims in react but not in react. so i extended that to support in nextjs also.
- Host: GitHub
- URL: https://github.com/abdheshnayak/next-ims-lti
- Owner: abdheshnayak
- License: mit
- Created: 2022-03-31T14:23:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T18:15:06.000Z (over 1 year ago)
- Last Synced: 2024-11-26T18:23:22.093Z (2 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/next-ims-lti
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# next-ims-lti
## Installation
```bash
npm i next-ims-lti
```## Example
```jsx
import getLtiContext from 'next-ims-lti';const App = ({ context }) => {
return (
{JSON.stringify(context, null, 2)}
);
};export const getServerSideProps = async (ctx) => {
const ltiContext = await getLtiContext({
ctx,
key: 'consumer-key',
secret: 'consumer-secret',
persist: false,
cookieOptions:{
path: '/',
}
});
return {
props: {
context: ltiContext,
},
};
};export default App;
```