18 lines
363 B
Java
18 lines
363 B
Java
package app.mealsmadeeasy.api.security;
|
|
|
|
import io.jsonwebtoken.Jwts;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import javax.crypto.SecretKey;
|
|
|
|
@Configuration
|
|
public class KeyConfiguration {
|
|
|
|
@Bean
|
|
public SecretKey secretKey() {
|
|
return Jwts.SIG.HS256.key().build();
|
|
}
|
|
|
|
}
|