Skip to content

Commit 5dd1fbd

Browse files
ci(repo): Version packages
1 parent 3b943aa commit 5dd1fbd

File tree

4 files changed

+26
-27
lines changed

4 files changed

+26
-27
lines changed

.changeset/cool-guests-trade.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.changeset/lovely-buttons-say.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/nuxt/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @clerk/nuxt
22

3+
## 1.8.0
4+
5+
### Minor Changes
6+
7+
- Introduces machine authentication, supporting four token types: `api_key`, `oauth_token`, `machine_token`, and `session_token`. For backwards compatibility, `session_token` remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. ([#6391](https://github.com/clerk/javascript/pull/6391)) by [@wobsoriano](https://github.com/wobsoriano)
8+
9+
You can specify which token types are allowed by using the `acceptsToken` option in the `event.context.auth()` context. This option can be set to a specific type, an array of types, or `'any'` to accept all supported tokens.
10+
11+
Example usage:
12+
13+
```ts
14+
export default eventHandler(event => {
15+
const auth = event.locals.auth({ acceptsToken: 'any' });
16+
17+
if (authObject.tokenType === 'session_token') {
18+
console.log('this is session token from a user');
19+
} else {
20+
console.log('this is some other type of machine token');
21+
console.log('more specifically, a ' + authObject.tokenType);
22+
}
23+
24+
return {};
25+
});
26+
```
27+
328
## 1.7.14
429

530
### Patch Changes

packages/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/nuxt",
3-
"version": "1.7.14",
3+
"version": "1.8.0",
44
"description": "Clerk SDK for Nuxt",
55
"keywords": [
66
"clerk",

0 commit comments

Comments
 (0)